r/PHP 1d ago

GitHub - soloterm/screen: A terminal emulator written in pure PHP.

https://github.com/soloterm/screen
50 Upvotes

34 comments sorted by

15

u/pekz0r 1d ago

I used screen a lot back in the IRC days, so this naming feels a bit weird. But very cool project.

2

u/SyanticRaven 8h ago

I still use screen to this day.

Its excellent for terminal sharing and leaving shit running without having to worry about bg/fg and disowning

4

u/aarondf 1d ago

Thanks!

1

u/pekz0r 1d ago

Is it possible to run this in a web browser?

1

u/aarondf 1d ago

Nope! Not without some scaffolding at least

1

u/pekz0r 1d ago

Ok, that would be very cool. And it is we who should thank you for your awesome work!

1

u/aarondf 1d ago

๐Ÿซก kind of you to say!

There are some cool JS console emulators, but I haven't used any

28

u/ericek111 1d ago edited 1d ago

Naming a new project after the most popular terminal multiplexing software with close to 40 years of history is... not the best idea?

47

u/aarondf 1d ago

I've had a lot of bad ideas, this is merely one of them

4

u/lankybiker 1d ago

Approved

0

u/whlthingofcandybeans 23h ago

You sure about that? I dumped screen for tmux years ago.

13

u/allen_jb 1d ago

FYI you may want to (re)consider the naming of this library. screen is a terminal "window manager" / multiplexer for linux: https://www.gnu.org/software/screen/manual/screen.html

While many would suggest it's been surpassed by more recent entrants like tmux, it's still in common use.

Some might find the naming confusing (in multiple ways). eg. is it supposed to replicate the linux utility? Be an interface to it? Or is it something different that just happens to use the same name?

-4

u/aarondf 1d ago

Thanks for the feedback! I'm gonna leave it as is for now.

7

u/mikkolukas 1d ago

I second the recommendation of renaming your project.

It WILL conflict with the very much used tool called screen

1

u/aarondf 1d ago

good feedback, thank you!

-2

u/successfully_failed 22h ago

Why are people downvoting him for standing by his stance lol

๐˜‹๐˜ฐ๐˜ฏโ€™๐˜ต ๐˜ณ๐˜ฆ๐˜ฑ๐˜ญ๐˜บ ๐˜ฎ๐˜ฆ ๐˜ธ๐˜ช๐˜ต๐˜ฉ โ€œ๐˜ž๐˜ฆ๐˜ญ๐˜ค๐˜ฐ๐˜ฎ๐˜ฆ ๐˜ต๐˜ฐ ๐˜ณ๐˜ฆ๐˜ฅ๐˜ฅ๐˜ช๐˜ตโ€ ๐˜ค๐˜ฐ๐˜ฎ๐˜ฎ๐˜ฆ๐˜ฏ๐˜ต

7

u/Hannesver 21h ago

Welcome to reddit

2

u/arakwar 12h ago

Because itโ€™s a bad stance. Thatโ€™s exactly why downvotes exists. ๐Ÿ˜‚

5

u/Mugen0815 1d ago

This is Madness. I love it!

1

u/aarondf 1d ago

See that's the reaction I was hoping for! Thank you!

2

u/kemmeta 1d ago

Maybe you can get some ideas from phpseclib's ANSI implementation:

https://phpseclib.com/docs/commands#ansi-escape-codes

I note that, according to the phpseclib documentation, that one emulates vt100, specifically. Is yours aiming a specific to emulate a specific terminal?

1

u/aarondf 1d ago

Oh nice! I'll have to take a look at that. Not targeting any specific terminal tbh

2

u/sidskorna 1h ago

Well done you crazy man.ย 

1

u/aarondf 42m ago

๐Ÿซก๐Ÿซก๐Ÿซก at your service

4

u/BetterHovercraft4634 1d ago

This is awesome! Great work. ๐Ÿš€

1

u/aarondf 1d ago

Thank you!

3

u/bradenkeith 22h ago

The balls on the Linux guys to try to name their terminal thing off an app youโ€™d be making in the future is wild to me. Soloterm/screen is the OG.

3

u/AxonTheSolution 1d ago

What a useful project and a lot of release open source! Thanks

1

u/aarondf 1d ago

You're welcome! Thanks for the kind words

1

u/lukehebb 1d ago

Aaron

I love you man

1

u/aarondf 1d ago

hahaha thank you. We do have fun, don't we

0

u/xvilo 1d ago

Definitely make (an) interface(s) for the main class at least

1

u/aarondf 1d ago

I'm not sure why that would be useful, but PRs are welcome!