LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-25-2011, 12:39 AM   #1
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467
Blog Entries: 60

Rep: Reputation: 51
Text-based RPG: A Cleaner Session?


Recently I started playing Lost Souls, a text-based RPG. I use a simple telnet client from a Gnome terminal. It is fun, but the only annoying thing is that whenever I start typing something, some other text pops up, and my command gets split over several lines. I was curious if there was a Linux telnet client or other tool that had a separate box for entering input -- so you could avoid getting it mixed in with the other text until you hit ENTER.
 
Old 10-25-2011, 09:30 AM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
You are in a maze of twisty little passages, all different.
> NORTH
You are in a twisty maze of little passages, all different.
> BECOME ADDICTED
Done.
>

http://www.ifarchive.org

You absolutely do not want to get into this unless you have positively nothing else to do with your life for, say, the next three weeks solid. "Eat in advance." This pasttime is notably incompatible with final exams. (Trust me on this.) If you introduce such games to your girlfriend, you will soon discover that she is much better at playing them than you are. (Trust me also on this.)

Last edited by sundialsvcs; 10-25-2011 at 09:48 AM.
 
0 members found this post helpful.
Old 10-26-2011, 02:37 AM   #3
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467

Original Poster
Blog Entries: 60

Rep: Reputation: 51
Quote:
Originally Posted by sundialsvcs View Post
You are in a maze of twisty little passages, all different.
> NORTH
You are in a twisty maze of little passages, all different.
> BECOME ADDICTED
Done.
>

http://www.ifarchive.org

You absolutely do not want to get into this unless you have positively nothing else to do with your life for, say, the next three weeks solid. "Eat in advance." This pasttime is notably incompatible with final exams. (Trust me on this.) If you introduce such games to your girlfriend, you will soon discover that she is much better at playing them than you are. (Trust me also on this.)
Wow, thanks for wasting my zero reply status by completely ignoring my question. Even the link you gave is broken.
 
Old 10-26-2011, 05:10 AM   #4
Nominal Animal
Senior Member
 
Registered: Dec 2010
Location: Finland
Distribution: Xubuntu, CentOS, LFS
Posts: 1,723
Blog Entries: 3

Rep: Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948Reputation: 948
Quote:
Originally Posted by hydraMax View Post
Recently I started playing Lost Souls, a text-based RPG. I use a simple telnet client from a Gnome terminal. It is fun, but the only annoying thing is that whenever I start typing something, some other text pops up, and my command gets split over several lines. I was curious if there was a Linux telnet client or other tool that had a separate box for entering input -- so you could avoid getting it mixed in with the other text until you hit ENTER.
I'm not aware of anything that exactly matches your description.

On the other hand, a quick hack might just do the trick: use two terminals, one for the commands, and the other for the game output.

In the "game" terminal, create a FIFO and cat it to the terminal:
Code:
mkfifo -m 0600 lostsouls ; clear ; cat lostsouls
In the "command" terminal, start the telnet connection, but redirect output to the FIFO, and thus to the other terminal:
Code:
clear ; telnet -L lostsouls.org > lostsouls
The -L option should give you color ANSI output. (It does for me, but I use xfce4-terminal.)
 
1 members found this post helpful.
Old 10-26-2011, 10:18 AM   #5
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,549

Rep: Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842Reputation: 1842
I think you should be looking for a MUD client. I don't have a specific suggestion because it's been a while since I've played any MUDs.
 
1 members found this post helpful.
Old 10-27-2011, 12:45 AM   #6
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467

Original Poster
Blog Entries: 60

Rep: Reputation: 51
Quote:
Originally Posted by Nominal Animal View Post
I'm not aware of anything that exactly matches your description.

On the other hand, a quick hack might just do the trick: use two terminals, one for the commands, and the other for the game output.

In the "game" terminal, create a FIFO and cat it to the terminal:
Code:
mkfifo -m 0600 lostsouls ; clear ; cat lostsouls
In the "command" terminal, start the telnet connection, but redirect output to the FIFO, and thus to the other terminal:
Code:
clear ; telnet -L lostsouls.org > lostsouls
The -L option should give you color ANSI output. (It does for me, but I use xfce4-terminal.)
Thanks. Seems to be working great.
 
Old 10-27-2011, 11:15 AM   #7
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467

Original Poster
Blog Entries: 60

Rep: Reputation: 51
Code:
    The brown female giant rat connects adequately and chews on your chest with its mouth.

    The brown female giant rat kicks at you with its left forepaw, connects adequately and wallops your left
foot.

    Your left foot is torn off.

    A brown female giant rat's left forepaw is thumped by the impact.

    The brown female giant rat kicks at you with its left forepaw, connects adequately and bashes your right
arm and right hand.

    A brown female giant rat's left forepaw is thumped by the impact.

    The brown female giant rat connects indifferently and chews on your right arm with its mouth.

    Your right arm and right hand are bitten off.

    The brown female giant rat barely connects and bites your right leg with its mouth.

    The brown female giant rat connects reasonably well and bites your chest with its mouth.

    You have been mortally wounded and will die soon if not aided.

    The brown female giant rat kicks at you with its left forepaw, connects adequately and pounds your head.

    You have been stunned by the pain and trauma.

    The area goes dark.

    The world goes silent.

    Your attempt to flee has been stopped.

    You attempt to flee southward, but cannot.

    Some blood flows from your chest.

    You are stunned.

    Your hearing returns.

    Something connects adequately and chews on your chest with its mouth, despite your attempt to dodge.

    [ Spirit: 475  Endurance: 409.1/426  Speed: 10  Head: 3.3/35  Chest: -18.9/77 ]

    Your wounds are too severe to fight.

    You attempt to flee northward, but cannot.

    Some blood flows from your chest.

    You are stunned.

    The world comes back into focus.

    Your body fails to obey you.
> 
    The brown female giant rat kicks at you with its left forepaw, connects adequately and wallops your left
leg.

    A brown female giant rat's left forepaw is thumped by the impact.

    You die.

    You feel yourself floating away from your body.
 
Old 10-27-2011, 12:35 PM   #8
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
not exactly useful if you don't tell us what program is generating that output.
did you try any programs designed specifically as mud clients rather than just a generic telnet? not all terminals are built the same, a generic telnet session isn't designed necessarily to handle the ANSII characters and escape sequences sent by the mud server whereas mud clients are. Just because it uses the telnet protocol doesn't mean it works properly with all telnet clients.
 
Old 10-27-2011, 01:21 PM   #9
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467

Original Poster
Blog Entries: 60

Rep: Reputation: 51
Quote:
Originally Posted by frieza View Post
not exactly useful if you don't tell us what program is generating that output.
did you try any programs designed specifically as mud clients rather than just a generic telnet? not all terminals are built the same, a generic telnet session isn't designed necessarily to handle the ANSII characters and escape sequences sent by the mud server whereas mud clients are. Just because it uses the telnet protocol doesn't mean it works properly with all telnet clients.
I'm sorry, I didn't think you would take it seriously. The two-terminal solution has been working great. However, I am still an RPG newbie and my first character ended-up getting owned by a giant rat. I just posted the last few lines of my brutal death via a furry sewer-dwelling creature.

It's great fun.

Last edited by hydraMax; 10-27-2011 at 01:33 PM.
 
Old 10-27-2011, 03:42 PM   #10
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
ok, didn't catch that... good luck
 
Old 10-27-2011, 08:38 PM   #11
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467

Original Poster
Blog Entries: 60

Rep: Reputation: 51
I should probably mention (for posterity's sake): The only problem I've had with the solution given by Nominal Animal is that the server is sent the terminal size information belonging to the input terminal (i.e., the terminal I type into). The RPG software then makes assumptions based on that size, such as how much text to page you at once. It would be more ideal if server received the terminal size information of the output terminal, because then I could make the output terminal really large and the input terminal really small, which is more of what I originally had in mind.

EDIT: But in Lost Souls, at least, you can manually set the terminal rows and columns from the main menu, so that isn't really a problem.

Last edited by hydraMax; 10-28-2011 at 01:54 AM.
 
Old 11-14-2011, 03:02 AM   #12
hydraMax
Member
 
Registered: Jul 2010
Location: Skynet
Distribution: Debian + Emacs
Posts: 467

Original Poster
Blog Entries: 60

Rep: Reputation: 51
I don't normally like reopening my old threads, but I just wanted to say that I gave tt++ a try and it is pretty useful. Aside from a #split command (for splitting i/o areas) it also has a lot of other helpful features, like alias syntax and history searching, that are pretty cool.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH/Telnet Session manager (preferably curses based) MetaPhyzx Linux - Software 0 04-22-2010 10:06 AM
join 2 text files based on first number present in every line of the 2 text files markraem Linux - Software 4 01-25-2010 07:26 AM
Text Cleaner nlavon Linux - Software 2 06-10-2008 07:32 AM
What is the best rogue-like text-based rpg EVER? MasterOfTheWind Linux - Games 2 09-09-2006 03:34 PM
text Based RPG Engine stabile007 General 2 07-26-2005 03:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration