Sign in or 

IEF015 |
Latest page update: made by IEF015
, Apr 17 2008, 6:37 PM EDT
(about this update
About This Update
Edited by IEF015
16 words deleted view changes - complete history) |
|
More Info: links to this page
|
| Started By | Thread Subject | Replies | Last Post | ||
|---|---|---|---|---|---|
| WtFC_Ebany | Cleared up console screen | 1 | Jun 29 2008, 2:27 PM EDT by WtFC_Ebany | ||
|
Thread started: Jun 29 2008, 2:25 PM EDT
Watch
Name: Cleaned-up console screen
Author: [WtFC] Ebany N@/expos v1 I@Key Reset O@Key X Y C Clk ~Key & Key & Key != 127 & Key != 154 & Key != 13 -> (X == 27 ? D = 1 : X += 1); D -> Y += 1, X = -1, D = 0; C = 500, Clk = 1 ~Reset & Reset -> X = 0, Y = 0; Key == 127 -> Key = 0, (X ? X -= 1 : E = 1); Y < 0 -> Y = 0; ~Key & Key == 154 -> Key = 0, X -= 1; E -> Y -= 1, X = 27, E = 0; ~Key & Key == 13 -> D = 1; This expression allows you to correctly use shift, backspace and carriage return on a console screen; so the backspace even goes over multiple lines. The only problem is that the backspace can't detect where the end of an un-even line is, so for a short line you will have to press it several times. |
|||||