LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-08-2010, 07:54 AM   #46
littlebigman
Member
 
Registered: Aug 2008
Posts: 528

Original Poster
Rep: Reputation: 32

Quote:
Originally Posted by genogebot View Post
I just noticed that you're running mc inside putty - maybe that's the problem. I run it in a console or a terminal window and ssh to my remote computer inside midnight commander with the 'Shell link' command.
Right, I connect to my Linux box from Windows through a terminal emulator (Putty, SecureCRT, TeraTerm) and I/O errors are common. I don't know enough (yet?) to be able to know why some keys don't work/as planned, or some funny characters pop up.

I've started googling for information. If someone knows of a good, thorough article that would explain the cause for those issues when connecting to Linux remotely through a Windows terminal emulator... I'm interested

Thank you.
 
Old 08-08-2010, 08:15 AM   #47
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Quote:
Originally Posted by r3sistance View Post
This is actually a reason I am going to say Vi(m) is not notepad like (even tho it pre-dates notepad), because notepad isn't about breaking around several modes, it's just about simple text editing what Nano is far more suited for.
At least I never said that vi is like notepad.

Quote:
Originally Posted by r3sistance View Post
Also notepad uses Control+Key combinations IE ^C copy, ^V paste... actually thinking about it, I wonder why no there are not any text editors that do try to be a bit more like notepad in that department
I also thought about this. It seems pretty obvious that there should be a command-line text editor that uses the same keys as most GUI editors, so that people who don't want to go through the trouble of learning vi, nano, etc. can use them.
 
Old 08-08-2010, 08:26 AM   #48
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,728

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
There is a console editor which does that, mped. I think it is about the least well-known editor around. I don't use it, I found it for someone who has a command line phobia. But it is based on curses, which might impose problems when using it with Putty.

jlinkels

Last edited by jlinkels; 08-08-2010 at 08:34 AM.
 
Old 08-08-2010, 08:31 AM   #49
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 517
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Leafpad is a notepad like editor with a gtk2 interface.
 
Old 08-08-2010, 08:54 AM   #50
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Almost all GUI text editors are Notepad-like. We are talking about text-mode editors, no graphics.
 
Old 08-08-2010, 09:30 AM   #51
Bratmon
Member
 
Registered: Jul 2009
Location: 75.126.162.205:80
Distribution: Arch / Mint 17
Posts: 297
Blog Entries: 3

Rep: Reputation: 50
Quote:
Originally Posted by r3sistance View Post
This is actually a reason I am going to say Vi(m) is not notepad like (even tho it pre-dates notepad), because notepad isn't about breaking around several modes, it's just about simple text editing what Nano is far more suited for. Also notepad uses Control+Key combinations IE ^C copy, ^V paste... actually thinking about it, I wonder why no there are not any text editors that do try to be a bit more like notepad in that department, since it does pretty much everything a text editor needs in a very efficient way that can on the main part easily work in a console...
Why would there need to be? Nano has that department covered.
 
Old 08-08-2010, 11:01 AM   #52
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,566

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
Originally Posted by MTK358
It seems pretty obvious that there should be a command-line text editor that uses the same keys as most GUI editors, so that people who don't want to go through the trouble of learning vi, nano, etc. can use them.
You need to add to this the preposition that the user is not brand new and already has experience in an OS that uses these keys.

I reiterate, at face value alone, I would teach a never used a computer or editor before person vi(m) any day of the week over most other
convoluted editors as the keys ARE straight forward and the purpose behind each key or combination of is for the most part easily derived.
 
Old 08-08-2010, 11:12 AM   #53
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by Bratmon View Post
Why would there need to be? Nano has that department covered.
And how do you do find and replace, highlight, copy and paste in nano? In notepad, it's ^H, hold shift and use arrow keys... and ^C and ^V.
 
Old 08-08-2010, 11:24 AM   #54
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,566

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
And how do you do find and replace, highlight, copy and paste in nano? In notepad, it's ^H, hold shift and use arrow keys... and ^C and ^V.
So I like the interesting challenge, although I will not sponsor nano as I do not like it.

Maybe you would explain how in notepad you would do your find and replace of Junk and junk? Last time I looked there is no regex in notepad so you would
have to perform the same action twice. How is this advanced?
 
Old 08-08-2010, 11:25 AM   #55
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,566

Rep: Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901Reputation: 2901
Quote:
And how do you do find and replace, highlight, copy and paste in nano? In notepad, it's ^H, hold shift and use arrow keys... and ^C and ^V.
So I like the interesting challenge, although I will not sponsor nano as I do not like it.

Maybe you would explain how in notepad you would do your find and replace of Junk and junk? Last time I looked there is no regex in notepad so you would
have to perform the same action twice. How is this advanced?
 
Old 08-08-2010, 11:38 AM   #56
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
Quote:
Originally Posted by grail View Post
So I like the interesting challenge, although I will not sponsor nano as I do not like it.

Maybe you would explain how in notepad you would do your find and replace of Junk and junk? Last time I looked there is no regex in notepad so you would
have to perform the same action twice. How is this advanced?
Notepad could do Junk and junk in one go (it asks if it's case specific), however it does not handle regular expressions, so you couldn't do say one and 1. Notepad++ I believe handles that but I have not much experience with that. I never said Notepad was advanced, in fact I think here the simplicity is what makes it better. Thinking that everything must be advanced is in my opinion a bad way of thinking about it. Einstein wanted a simple formula, thus we have E=MC^2 and this is easier to deal with then the full versions Einstein himself had to use to get to this point.

Last edited by r3sistance; 08-08-2010 at 11:40 AM.
 
Old 08-08-2010, 12:12 PM   #57
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
But it doesn't mean there is no place for advanced stuff!

This reminds me that one thing I can't stand about vi(m) is that it uses "old-style" regular expressions, not ERE (extended regex) or PCRE (Perl-style regex). The main thing I don't like about old regex is that I use use captures often, and you have to put backslashes before the parens.

Also, they support the {min, max} operator without having to escape the braces.

Last edited by MTK358; 08-08-2010 at 12:13 PM.
 
Old 08-08-2010, 12:17 PM   #58
r3sistance
Senior Member
 
Registered: Mar 2004
Location: UK
Distribution: CentOS 6/7
Posts: 1,375

Rep: Reputation: 217Reputation: 217Reputation: 217
There is place for very advanced stuff, I mean as I said, the stuff Einstein had to deal with to get to that was advanced but he simplified it down to an equation almost anybody can use. Still, I stick to the K.I.S.S. philosophy myself as I consider users of the lowest experience/ability more then those of the highest... that does have some draw back to expert users in some cases... however if the needs be in those situations, I ask the users what they need.
 
Old 08-10-2010, 12:51 AM   #59
genogebot
Member
 
Registered: Jun 2010
Location: Brisbane, Australia
Distribution: Xubuntu 16.04.1 / Linux Mint 18 XFCE / Linux Mint 18 Mate / Ubuntu Server 16.04.1 / Lubuntu 16.04.1
Posts: 146

Rep: Reputation: 19
Smile Possible solution

Quote:
Originally Posted by littlebigman View Post
Right, I connect to my Linux box from Windows through a terminal emulator (Putty, SecureCRT, TeraTerm) and I/O errors are common. I don't know enough (yet?) to be able to know why some keys don't work/as planned, or some funny characters pop up.

I've started googling for information. If someone knows of a good, thorough article that would explain the cause for those issues when connecting to Linux remotely through a Windows terminal emulator... I'm interested

Thank you.
I was intrigued so I downloaded TeraTerm 4.66 and gave it a try in a Windows XP virtual machine running in Linux Mint 9, and ssh'd to my Ubuntu server. I got the same display screw-up when TeraTerm was set to 'English' in the 'Setup - General' dialog but when I changed it to 'UTF-8' (ie. Unicode) it worked ok. It makes sense, because Unicode supports a greater number of characters.

Console: http://a.yfrog.com/img202/1579/consolef.jpg

mc: http://a.imageshack.us/img831/9927/31704124.jpg

mcedit: http://a.imageshack.us/img710/6918/mcedit.jpg

P.S. I think your thread has been vi-jacked

I hope this helps.

Last edited by genogebot; 08-10-2010 at 12:52 AM.
 
Old 08-10-2010, 10:26 PM   #60
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,728

Rep: Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754Reputation: 754
This is absolutely weird. After my post where I recommended joe I was wondering why I wasn't using vi as this is considered the editor with utmost user friendlyness. So why not me?

Earlier attempts to use vi as standard editor had failed, but this time I looked up and found some good web pages with cheat sheets.

I love it, I haven't been using anything else since a week.

jlinkels
 
  


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
text editor vs notepad linux_sj Linux - Newbie 13 03-24-2010 11:48 AM
notepad compatible text editor manuleka Linux - Newbie 5 03-30-2009 03:55 PM
using Windows Notepad in Linux newbiesforever Linux - Software 9 08-07-2008 01:52 PM
How can we copy the program code wriiten in notepad to linux vi editor? mayank027 Linux - General 2 10-25-2005 07:14 AM
Notepad in linux wh33t Linux - Software 10 05-24-2004 11:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 AM.

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