]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Prompt for input on same line as options 11340/head
authornorve <norve@gmx.com>
Fri, 18 Feb 2022 21:17:01 +0000 (21:17 +0000)
committernorve <norve@gmx.com>
Fri, 18 Feb 2022 21:17:01 +0000 (21:17 +0000)
pdns/pdnsutil.cc

index e846fd607a35f562387bf84cbe12934fe94b90a4..bf7aeedc1f2535d454bc559ba6983ff5e793cfd7 100644 (file)
@@ -1234,7 +1234,7 @@ static int editZone(const DNSName &zone) {
   }
   if(checkZone(dk, B, zone, &checkrr)) {
   reAsk:;
-    cerr<<"\x1b[31;1mThere was a problem with your zone\x1b[0m\nOptions are: (e)dit your changes, (r)etry with original zone, (a)pply change anyhow, (q)uit: "<<endl;
+    cerr<<endl<<"\x1b[31;1mThere was a problem with your zone\x1b[0m\nOptions are: (e)dit your changes, (r)etry with original zone, (a)pply change anyhow, (q)uit: "<<std::flush;
     int c=read1char();
     cerr<<"\n";
     if(c!='a')
@@ -1276,7 +1276,7 @@ static int editZone(const DNSName &zone) {
     if (changed.find({zone, QType::SOA}) == changed.end()) {
      reAsk3:;
       cout<<endl<<"You have not updated the SOA record! Would you like to increase-serial?"<<endl;
-      cout<<"(y)es - increase serial, (n)o - leave SOA record as is, (e)dit your changes, (q)uit:"<<endl;
+      cout<<"(y)es - increase serial, (n)o - leave SOA record as is, (e)dit your changes, (q)uit: "<<std::flush;
       int c = read1char();
       switch(c) {
         case 'y':