Complex GatesThis is a featured page

All of the large, complex, useful gates.

Remember to use this format:



Name:
Author:
Description: [optional]
Example Uses: [optional]

CODE:




Code explaination: (we want to know what it does [optional])






No user avatar
IEF015
Latest page update: made by IEF015 , Apr 17 2008, 6:37 PM EDT (about this update About This Update IEF015 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.
6  out of 9 found this valuable. Do you?    
Show Last Reply
Showing 1 of 1 threads for this page

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)