Author Topic: scrolling  (Read 15798 times)

nobody

  • Guest
scrolling
« on: December 03, 2004, 12:29:35 PM »
anyone who knows how to use scroll in nasm?

like for example if i display data that wont fit in one screen, i want to scroll up to see the other data.

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2667
  • Country: us
Re: scrolling
« Reply #1 on: December 08, 2004, 08:15:31 AM »
Dunno. They tell me XP lets you do this... but I don't run XP. I think you'll have to read your data into a buffer, and just display what *will* fit on the screen. Scrolling down is easy. Scrolling back up, not so much. Backing up through the buffer, counting CRs and/or LFs is the only way I've been able to do it - not really too satisfactory (especially if some of your lines "wrap" and a newline might represent more than one screen line). What OS is this for? How do you get keystrokes? Can you get by with a "more" style thing that just displays 25 lines and waits for a key? Or do you really have to scroll back up? There's no "scroll" instruction, so whatever you do will have to be very OS-specific...

Best,
Frank