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

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

[Octave-bug-tracker] [bug #51289] Up arrow not showing Octave history co


From: Night Cod3r
Subject: [Octave-bug-tracker] [bug #51289] Up arrow not showing Octave history commands from an executable script
Date: Wed, 21 Jun 2017 17:58:47 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36

URL:
  <http://savannah.gnu.org/bugs/?51289>

                 Summary: Up arrow not showing Octave history commands from an
executable script
                 Project: GNU Octave
            Submitted by: nightcod3r
            Submitted on: Wed 21 Jun 2017 09:58:46 PM UTC
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: Nightcod3r
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.0.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

(Not sure if this can be considered a bug, or just a change in the
functionality from older versions, but just in case.)

Pressing up-arrow will show past commands. But executing this script:

#!/usr/bin/octave -q

a = input(">> ", "s");

it will prompt for an input, but when pressing up-arrow it will show ^[[A.
This is for version 4.0.0, but in older versions, like 3.2.4, up-arrow would
work fine in the executable script, showing the commands in the history file,
just as the original prompt in the GNU Octave command window. I've checked and
both runs (command window and script) are updating the same history file, so
may be the thing is in the way input is taken. I believe it's a readline
thing, but can't figure out how to make it work.




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51289>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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