programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: TTY question

From: Gene LeFave <gene_at_tekdata.com>
Date: Thu, 08 May 2008 15:59:07 -0500

Rick,

I have mixed feelings about this. If you want to do a status, or progress indicator. You
almost always want the existing behavior in case a user scrolls the screen.

To the extent that the console is intended to emulate a physical terminal like putting a clock
on screen, you would want your proposed behavior..

At-XY also conflicts with GET-SIZE. One could reasonably expect that GET-SIZE 2/ SWAP
2/ SWAP AT-XY would be the middle of the screen, but of course it's not if there's been any
scrolling

One is pleasantly surprised though that

: go ." Starting ..." GET-XY
50 0 DO CR I . LOOP
AT-XY ." done." ;

works exactly as expected, with "Starting.. done." on the first line.

I think that the best solution would be to allow the programmer to choose. Perhaps two
personalities simple-gui and console-gui one with a physical definition of xy and the other a
logical.

Gene

> Hi Everybody,
>
> The current functionality of the TTY window with regard to GET-XY and
> SET-XY is that the entire window is part of that addressing scheme.
> Specifically, if you have 100 lines scrolled off of the screen, and
> execute "0 0 SET-XY" the cursor will be repositioned at the very top
> of the buffer, not at the top of the visible screen.
>
> I consider this broken; I think that "0 0 SET-XY" should reposition
> the cursor to the top of the visible window.
>
> The question here is: Does anyone depend on this behavior enough to
> warrant NOT fixing it?
>

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Thu May 08 2008 - 13:59:55 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:44 PST