Jump to content




Just Scrolling Shell - one extension to the default shell


3 replies to this topic

#1 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 28 December 2017 - 11:30 PM

Just Scrolling Shell

Description:
Just Scrolling Shell is a shell which can everything what do normal shell does (copy and paste yeah ;P) and one feature more: Scrolling
Well it isn't as good as the lovely Mildly Better Shell (try it!), but an alternative. The shell buffers 250 lines.

Why shouldn't I use just Mildly Better Shell?
Well first of all, it creates files on your system and then you have to install the beta version. My shell works definatly on CC 1.7 and probably till 1.79.

Usage:
Mouse middle click returns to cursor position.
Mouse scrolls one line per tick.
Page up or down scrolls the whole screen per pressed key.

Installation:
pastebin get 6qpzWuLb ScrollingShell
Run it per
>ScrollingShell

Documentation for the shell API:
Spoiler

License: MIT

Edited by Sewbacca, 30 December 2017 - 08:07 PM.


#2 SquidDev

    Frickin' laser beams

  • Members
  • 1,421 posts
  • LocationDoes anyone put something serious here?

Posted 29 December 2017 - 02:40 PM

Just tried it out: it's jolly neat. There's a couple of thoughts on things:
  • It might be nice if user input scrolled to the bottom of the screen: namely key and paste events (excluding pageUp/pageDown obviously).
  • As your code is derived from an earlier shell, running it on 1.80pr1 will throw "No such program" errors as it looks for rom/programs/xyz rather than rom/programs/xyz.lua. Replacing the relevant sections with this code should be sufficient.
  • Overriding term.native is evil: please don't do that :).


#3 Sewbacca

  • Members
  • 450 posts
  • LocationStar Wars

Posted 30 December 2017 - 01:45 PM

Thanks for trying out =)
I've just modified some things, for reinstall, delete ScrollingShell and redownload it with the same pastebin link.

View PostSquidDev, on 29 December 2017 - 02:40 PM, said:

  • It might be nice if user input scrolled to the bottom of the screen: namely key and paste events (excluding pageUp/pageDown obviously).

Yeah, I added this for paste and char events.

View PostSquidDev, on 29 December 2017 - 02:40 PM, said:

  • As your code is derived from an earlier shell, running it on 1.80pr1 will throw "No such program" errors as it looks for rom/programs/xyz rather than rom/programs/xyz.lua. Replacing the relevant sections with this code should be sufficient.

Yeah, I replaced the code. I had wondred why I had to write list.lua for list the directory. Will my shell work on older versions anymore?

View PostSquidDev, on 29 December 2017 - 02:40 PM, said:

  • Overriding term.native is evil: please don't do that :).

Oh, that was a try for bugfixing and then I've forgotten that I placed that there... Thanks! =)

Edited by Sewbacca, 30 December 2017 - 08:06 PM.


#4 SquidDev

    Frickin' laser beams

  • Members
  • 1,421 posts
  • LocationDoes anyone put something serious here?

Posted 30 December 2017 - 05:58 PM

View PostSewbacca, on 30 December 2017 - 01:45 PM, said:

Yeah, I replaced the code. I had wondred why I had to write list.lua for list the directory. Will my shell work on older versions anymore?
It should be entirely backwards compatible so everything should just work fine on either version.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users