Jump to content




Make terminal output scrollable?


4 replies to this topic

#1 CreeperGoBoom

  • Members
  • 91 posts

Posted 16 December 2019 - 11:48 PM

Is this possible? Say if someone used either their mouse wheel or keyboard up down buttons?

also can I then get the click location of said scrollable terminal screen?

Edited by CreeperGoBoom, 16 December 2019 - 11:49 PM.


#2 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 17 December 2019 - 08:18 AM

You might want to look at mbs and advanced computers

http://www.computerc...-default-shell/

https://www.computer...vanced_Computer

#3 CreeperGoBoom

  • Members
  • 91 posts

Posted 17 December 2019 - 08:30 AM

For the sake of code releasing. Would everyone else who gets my code also need to download and install mbs?

Thanks ill look more into the advanced computer. That might just be what I'm after.

#4 CreeperGoBoom

  • Members
  • 91 posts

Posted 17 December 2019 - 08:49 AM

Sorry for bump but google isn't coming up with anything.

What i want to be able to do i manually scroll through items that have been hidden, or should I say... pushed up out of view.

And mbs isnt installing for me so yeah..

How would I make it so that the text that got pushed up is scrollable other than maybe pulling scrolling/key events and using term.scroll?

#5 Lupus590

  • Members
  • 2,029 posts
  • LocationUK

Posted 17 December 2019 - 09:25 AM

You don't need to install mbs, just look at its code and how it does it's scrolling feature (might be called scroll back)


What do you mean by scrollable? As in it moves everything up when it gets to the bottom (that's built in) or people can go back to look at what they typed in which scrolled off the top of the screen (mbs does this)?

Looking around the mbs code, what you want is this https://github.com/S...roll_window.lua you can find a example of its uses in the shell https://github.com/S.../shell.lua#L542 look for all the uses of the redirect variable





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users