bugGNU Octave - Bugs: bug #64773, In a @callback the command input()...

 
 

bug #64773: In a @callback the command input() is misinterpred.

Submitter:  Alexander Paul <erwin55>
Submitted:  Fri 13 Oct 2023 07:39:55 AM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Unexpected Error or Warning
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * 8.3.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 13 Oct 2023 07:39:55 AM UTC, original submission:  

It looks like the interpreter is trying to execute whatever was typed after the callback has finished. E.g.:

figure ()
PushButton = uicontrol(gcf,'Style', 'pushbutton', ...
  'String', "*ERASE History** \n -T.B.C-", ...
  'Units','Normalized', ...
  'BackgroundColor',[1 0 0], ...
  'Position', [0.39 0.0 .2 .2], ...
  'Callback', @EraseHistory);

function EraseHistory(ObjH, EventData)
  FigH = ancestor(ObjH, 'figure');
  Yes = input('Erase the history buffer? y/n(any) >> ','s');
  if(strcmp(Yes,"y"));
    disp('Yes chosen');
  else
    disp('Nothing happens');
  end
end

Alexander Paul <erwin55>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by erwin55 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code