octave-maintainers
[Top][All Lists]
Advanced

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

RE: Win32 Terminal capabilities


From: JohnD
Subject: RE: Win32 Terminal capabilities
Date: Sun, 5 Apr 2015 07:38:49 -0400

> Message: 3
> Date: Sat, 04 Apr 2015 11:46:19 -0700
> From: Rik <address@hidden>
> To: Octave-Maintainers <address@hidden>
> Subject: Win32 Terminal capabilities
> Message-ID: <address@hidden>
> Content-Type: text/plain; charset=utf-8
> 
> 4/4/15
> 
> While trying to solve https://savannah.gnu.org/bugs/index.php?44661 it
> became apparent that the Windows terminal is in line-buffered mode
(requiring
> an <ENTER> at the end of input before it is passed to Octave for
processing).
> This doesn't work for routines like pause() or kbhit() which need to
process just a
> single keystroke.  When I look at the code for kbhit in sysdep.cc it leads
to the
> raw_mode() function which is supposed to switch the terminal mode to
> unbuffered.  There are three #ifdef blocks in that function that decide
which set
> of library functions to use to manipulate the terminal (HAVE_TERMIOS_H,
> HAVE_TERMIO_H, HAVE_SGTTY_H).
> 
> When we cross-compile, however, none of the tests in configure.ac work and
I
> find this in the mxe log file for octave:
> 
> configure: WARNING: I couldn't find termios.h, termio.h, or sgtty.h!
> 
> I also verified on a Windows machine with octave_config_info() that none
of the
> #defines are set.
> 
> Does anyone know which terminal might be available?  I'd like to try
adding a
> manual '-DOPTION' to the configure command for octave and see if that
works.
> And longer term, is there a package we could add to mxe that would give us
one
> of these terminal options?
> 
> --Rik
> 


Termcap is installed.

The closest other terminal library available for windows would probally be
ncurses, but isn't installed in mxe.




reply via email to

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