r/commandline • u/undergroundshaker • 15d ago
Other Software Art project - terminal simulator?
Not sure if this is the right place to post this. I'm working on an art project and would like it to be basically a short film of a conversation happening within a terminal. Between the computer itself and the user.
I'm wondering if anyone knows of some sort of terminal simulator, one where i could control both the input and the output to create dialogue. The more retro looking the better
The piece is a commentary on AI so obviously I don't want any AI.
Thanks,
someone who knows very little about coding but wants to make art
EDIT: thank you for all your responses!!! i got WSL and have been spending some of my free hours learning how to navigate linux (i've always wanted to, so this is a plus!) i followed u/mullikine 's advice using cool retro term and the text file method, and so far it's doing what i want it to do!
2
u/Arxae 15d ago
Any can do that, the terminal is just display. You can create a program that just prints out your dialog. Thats just a couple of print statements and some pauses and can be done in basically any language of your choice. That would be pretty simple to make, even without AI. You could probably be up and running and writing your dialog in 30 mins tops. You can also setup an echo server and connect to telnet. Bit more work, but whatever you type in gets spat back out to everyone connected. Could also get a terminal irc client and just use irc.
The terminal doesn't matter much in the end.
2
u/mullikine 15d ago edited 15d ago
These instructions should just work on Linux and Mac because Bash comes with Mac and Linux. But on Windows you might use a different scripting language rather than Bash.
That sounds like it might be a job for cool retro term.
https://github.com/swordfish90/cool-retro-term
The download is here for Mac and Linux:
https://github.com/Swordfish90/cool-retro-term/releases
Do the following inside cool retro term for the retro look, but otherwise it should just work in a regular terminal too.
The following bash program simulates a conversation.
Put the following code into a text file and name it
dialogue.sh.Then run the script in the terminal by typing
bash dialogue.shand pressing enter to run the dialogue.sh script in bash.Then when it displays the prompt (i.e. "> ") then type into it, for example, hello and then press enter, and the first line of the computer's script will come out. And then the next one etc. You can add more lines into the HEREDOC to make the conversation longer:
6
u/ResidentPomegranate6 15d ago
record a real session with script -t timing.txt, then edit the timing file to fake typing speed. asciinema replays it anywhere and looks retro.
1
u/AmanBabuHemant 15d ago
Hello, so like an loop which print messages.
You can easily do this with any programming language which let you delay executions, here is a quick python script I wrote for you.
This will also give you the typing effect for each character.
2
u/4Necrom 15d ago
You'll want vhs, it allows you to script everything that will happen in the terminal and then replay it back for you, you can then record however you want, add some effects to the video, etc. Have fun.
1
u/AutoModerator 15d ago
Every new subreddit post is automatically copied into a comment for preservation.
User: undergroundshaker, Flair:
Other Software, Title: Art project - terminal simulator?Not sure if this is the right place to post this. I'm working on an art project and would like it to be basically a short film of a conversation happening within a terminal. Between the computer itself and the user.
I'm wondering if anyone knows of some sort of terminal simulator, one where i could control both the input and the output to create dialogue. The more retro looking the better
The piece is a commentary on AI so obviously I don't want any AI.
Thanks,
someone who knows very little about coding but wants to make art
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/Anguished_Kitty 15d ago
i did something similar a few years ago. i wrote a bash script at the time. it was super simple as far as coding goes i had no experince at the time and it took me a few hours to learn enough to script something that i just screen recorded. its not exactly what you asked for but if you dont find another solution hopefully it helps!
1
u/IceDoomer 15d ago
This sounds like "text adventure" game? If it is. I bet there are websites which you could easily setup the story line and download it so you can play it in the terminal.
1
u/DevOfWhatOps 15d ago
Its very easy actually, in any terminal that runs bash as the shell (most on linux do by default) you can write your dialogues in a simple
text.txtas such:text.txt:Then right next to it have a
run.shthat reads that file and prints them for yourun.shThe result will be a typewritter effect. You can record your terminal then with asciinema or other similar tools, or just screen record.