public inbox for frysk-bugzilla@sourceware.org
help / color / mirror / Atom feed
* [Bug general/4565] New: getTermwidth does not honor Terminal
@ 2007-05-29 22:13 scox at redhat dot com
  0 siblings, 0 replies; only message in thread
From: scox at redhat dot com @ 2007-05-29 22:13 UTC (permalink / raw)
  To: frysk-bugzilla

http://sourceforge.net/tracker/index.php?func=detail&aid=1727930&group_id=64033&atid=506056

getTermwidth does not honor Terminal.  	 
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.

        * src/jline/ConsoleReader.java (getTermwidth): Use terminal instead of
        Terminal.setupTerminal()
        (getTermheight): Likewise.
 
Index: frysk-imports/jline/src/jline/ConsoleReader.java
===================================================================
RCS file: /cvs/frysk/frysk-imports/jline/src/jline/ConsoleReader.java,v
retrieving revision 1.2
diff -u -p -r1.2 ConsoleReader.java
--- frysk-imports/jline/src/jline/ConsoleReader.java    19 Jul 2005 15:27:55
-0000      1.2
+++ frysk-imports/jline/src/jline/ConsoleReader.java    29 May 2007 18:38:44 -0000
@@ -352,7 +352,7 @@ public class ConsoleReader
         */
        public int getTermwidth ()
        {
-               return Terminal.setupTerminal ().getTerminalWidth ();
+               return terminal.getTerminalWidth ();
        }


@@ -365,7 +365,7 @@ public class ConsoleReader
         */
        public int getTermheight ()
        {
-               return Terminal.setupTerminal ().getTerminalHeight ();
+               return terminal.getTerminalHeight ();
        }

-- 
           Summary: getTermwidth does not honor Terminal
           Product: frysk
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: frysk-bugzilla at sourceware dot org
        ReportedBy: scox at redhat dot com
OtherBugsDependingO 4054
             nThis:


http://sourceware.org/bugzilla/show_bug.cgi?id=4565

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-29 22:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-29 22:13 [Bug general/4565] New: getTermwidth does not honor Terminal scox at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).