TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Running vim from within tt++

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion
View previous topic :: View next topic  
Author Message
titeuf



Joined: 29 Jul 2006
Posts: 84

PostPosted: Fri Jan 25, 2008 7:45 pm    Post subject: Running vim from within tt++ Reply with quote

I'm playing with #system to run vim so I can use a good editor instead of the builtin editor my mud provides.
#system vim file obviously works and launches vim like it should, but after I close it tt++ is kind of messed up: the cursor is at the wrong place: it's two rows too high (I use #split 7 1 by the way) and the cursor arrows doesn't work anymore (when I press up I get \e[A for instance).
The cursor position can be fixed by resizing my terminal (gnome-terminal), but the arrow keys stays messed up until I restart tt++.

Is there any way to fix this?
Back to top
View user's profile Send private message
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Fri Jan 25, 2008 8:29 pm    Post subject: Reply with quote

You can try #showme {\e=\e[?1h} followed by another #split 7 1
Back to top
View user's profile Send private message Send e-mail
titeuf



Joined: 29 Jul 2006
Posts: 84

PostPosted: Sat Jan 26, 2008 7:40 am    Post subject: Reply with quote

Awesome, that works Cool
Back to top
View user's profile Send private message
svakanda



Joined: 25 Jan 2008
Posts: 18
Location: Missoula, MT

PostPosted: Mon Jan 28, 2008 11:30 am    Post subject: advantages? Reply with quote

are there any advantages to this compared to just running vim/tt++ in two separate 'screen' windows?
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
titeuf



Joined: 29 Jul 2006
Posts: 84

PostPosted: Mon Jan 28, 2008 12:16 pm    Post subject: Reply with quote

For me they are: it allows me to replace the builtin composer my mud uses and when I close vim it automatically update the text with the new one I wrote in vim.
Back to top
View user's profile Send private message
svakanda



Joined: 25 Jan 2008
Posts: 18
Location: Missoula, MT

PostPosted: Mon Jan 28, 2008 6:56 pm    Post subject: ohh... Reply with quote

thats freakin cool!!! i get it =)
Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> General Discussion All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group