DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Console Scheme Snippet

01.18.2006
| 1969 views |
  • submit to reddit
        
c: open/no-wait [scheme: 'console]
forever [
    wait [c]
    print copy c
]

c: open/no-wait [scheme: 'console]
forever [
    wait [c]
    print mold ch: copy c
    insert c #"^M"
]

c: open/binary/no-wait [scheme: 'console]
forever [
    if not none? wait/all [c] [
        print to-char copy to-integer c
    ]
]