#30 getTermwidth does not honor Terminal

closed-fixed
nobody
None
5
2010-05-13
2007-05-29
Anonymous
No

A user specified terminal is not honored by getTermwidth and getTermheight.
e.g. Given:
ConsoleReader(new FileInputStream(java.io.FileDescriptor.in),
new PrintWriter(System.out),
null,
new
PtyTerminal(frysk.sys.FileDescriptor.in))

getTermwidth calls
Terminal.setupTerminal ().getTerminalWidth ();
which results in calling UnixTerminal.getTerminalWidth.

From: scox@redhat.com

Discussion

  • ConsoleReader.java patch:

     
    Attachments
  • This appears to have been applied in another form.

     
    • status: open --> closed-fixed