octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #64883] sprintf with backspace character inser


From: anonymous
Subject: [Octave-bug-tracker] [bug #64883] sprintf with backspace character inserts newline
Date: Sat, 11 Nov 2023 17:19:37 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?64883>

                 Summary: sprintf with backspace character inserts newline
                   Group: GNU Octave
               Submitter: None
               Submitted: Sat 11 Nov 2023 10:19:35 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 8.3.0
         Discussion Lock: Any
        Operating System: GNU/Linux
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 11 Nov 2023 10:19:35 PM UTC By: Anonymous
The following displays a counter that increments in-place in the command
window. The previous number is erased and overwritten by the next number. In
Matlab you see the word "Counter" followed by a number that changes. In Octave
it prints a newline for each character.  


function untitled()

disp('Counter     ');

for k=1:100
    disp(sprintf('\b\b\b\b\b%-4d',k));
    pause(0.05);
end









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64883>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]