about summary refs log tree commit diff stats
path: root/034address.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-09 16:42:11 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-09 16:48:49 -0700
commitcf3ac87f17aa866d96c8f66735127809431b2cb3 (patch)
tree9bdf7784ec83e70683a6e86291869514be2a7c5a /034address.cc
parenta97df2ad5dc504fb090b54302fdc41f010d887bf (diff)
downloadmu-cf3ac87f17aa866d96c8f66735127809431b2cb3.tar.gz
3163
Experimental: kinda support $print in console mode.

It's not perfect and probably will never be, because 'cout' buffers
differently from termbox primitives, which can cause console-aware
newlines to show up before other (console-oblivious) prints, like in
this example program:

  def main [
    open-console
    $print [abc], 10/newline
    $print [def], 10/newline
    wait-for-some-interaction
    close-console
  ]

And then there's the problem that there's no way for cout to update
Display_column. So mixing $print and print will be confusing.

Perhaps we should just not mess with Display_* variables inside $print?
But then we'll only ever be able to see a single line of $print at a
time.
Diffstat (limited to '034address.cc')
0 files changed, 0 insertions, 0 deletions