Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug | Exiting Screen #69

Open
ghost opened this issue Jul 3, 2020 · 3 comments
Open

Bug | Exiting Screen #69

ghost opened this issue Jul 3, 2020 · 3 comments

Comments

@ghost
Copy link

ghost commented Jul 3, 2020

If you give parameters like sl --help you can escape the train with CTRL+C
@StackNeverFlow and @xVoiceSyntax

@kugiyasan
Copy link

I think sl -e will do what you want.

@ghost
Copy link
Author

ghost commented Oct 8, 2020

@kugiyasan I give the parameter --help to the sl command and i can escape the train with CTRL+C
It isn't a question, it is a report.

@ghost ghost closed this as completed Oct 8, 2020
@ghost ghost reopened this Oct 8, 2020
@kugiyasan
Copy link

kugiyasan commented Oct 9, 2020

@xVoiceSyntax oops sorry I misread that!
Anyway, I went to read the code, and the issue you're pointing seems old. I tried running the sl that is in the ubuntu repo (v3.03) and I was able to reproduce your experience. This was caused by the simple argument parser that is still used. It simply checks if the argument starts with "-", and then toggle on all options for the letters after the "-". When you run "sl --help", the code sees "e" and "l" in the word "help", so the train becomes little and you can escape out of it.

In v5.03 (the latest version), the -e argument isn't accepted anymore, so your issue is solved (kinda). If you want to install the newer version of sl, clone the repo, compile it, and replace the old sl in /usr/games by the new one.

git clone https://github.com/mtoyoda/sl.git
cd sl
make
mv /usr/games/sl /usr/games/oldsl
mv sl /usr/games

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant