|
From: | Arun Giridhar |
Subject: | [Octave-bug-tracker] [bug #64908] Cut/paste "pause" into command window may cause unexpected results |
Date: | Mon, 20 Nov 2023 10:08:45 -0500 (EST) |
Update of bug #64908 (project octave): Item Group: Incorrect Result => Matlab Compatibility Status: None => Confirmed Operating System: Microsoft Windows => Any _______________________________________________________ Follow-up Comment #4: It seems that Matlab's pause() implements two different input streams instead of drawing the key press character from the standard input stream where the pasted characters are being read? Not sure how to implement that. Does getchar() know the difference between an input stream and a keyboard? Pretty sure getch() is not portable. It seems that the C++ standard abstracts it to streams and there's no specific way to define a keyboard, hence no portable way to wait for a key press. Guessing Matlab does this with system("PAUSE") or equivalent? _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64908> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |