Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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
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.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
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.
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.
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?
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?
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 10:40 AM.
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.
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.
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:
Possible solution
Quote:
Originally Posted by littlebigman
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.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.