View previous topic :: View next topic
|
Author |
Message |
StanislavL
New User
Joined: 07 Apr 2009 Posts: 5 Location: SPb, RF
|
|
|
|
Hi, All! Sorry, if it's FAQ
What do people USUALLY do to obtain "¬" character in the source code ?
I use linux and c3270/x3270 clients to access MF. Copy-paste does not work well.
Now I have 2 solutions: 1. editor "hex" command 2. switch to french keyboard & press ALT+"~/`"
Is there a "normal" way ?
2nd: what's better if I want to download this source code to my PC & send it to anyone ? I mean - to avoid the problems with this character. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Recentley posted: Alt + "1,7,0 on numeric keypad of PC keyboard" - not sure if it will really solve the purpose you are looking for . . . |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
back in the days when I wrote code for a 16K machine, I used 'NOT' in my logic.
last 20 years or so, I have just learned to code differently.
I am an adherent to the standard of avoiding NOT.
every language allows for the 'IF/ELSE' type of logic and a NOP for the IF.
tends to be easier to read.
I realize there is legacy code (as well as new code) that utilizes NOT,
and sometimes it is difficult to change the logic
or convincing the bean-counters to invest the time to introduce the change.
as Anuj indicated, holding down the ALT and then depressing 1 7 0 (ASC 170) will give you a ¬.
again thx to Terry Heinze for the tip. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
this would depend on the codepage that you emulator is using. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello and welcome to the forum,
To facilitate seeing how one's current terminal emulator "sees" things, i keep a member that contains hex values from x'00' to x'FF'.
The last bit of the x'5x' line:
When i see the ¬ on the 3270 screen, it can easily be pasted into wherever. . .
As has been mentioned, it is probably a good idea to use an alternative to "not". . . |
|
Back to top |
|
|
StanislavL
New User
Joined: 07 Apr 2009 Posts: 5 Location: SPb, RF
|
|
|
|
So, there is no any "usual" solution...
ALT + 170 does not work in linux
(Of course, I can assign any character to any key. But it's not "usual")
As to the construction "... then nothing; else something;", it's unreadable... |
|
Back to top |
|
|
dominickim
New User
Joined: 28 Feb 2007 Posts: 65 Location: NS, CA
|
|
|
|
Sometimes I am using Linux with x3270 as well.
If it is REXX program, I use '/' instead of '¬', if it is JCL then I code '@' first and use TSO command below at the end. I don't think it is "usual", but it helps.
c @ x'5f' all |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
StanislavL,
Quote: |
As to the construction "... then nothing; else something;", it's unreadable... |
sounds as if you are justifying your coding practice.
i could almost hear you whining from here. |
|
Back to top |
|
|
StanislavL
New User
Joined: 07 Apr 2009 Posts: 5 Location: SPb, RF
|
|
|
|
dbzTHEdinosauer wrote: |
sounds as if you are justifying your coding practice. |
Sorry, sorry, sorry....
2 or 3 times I was writing something like this in sh - because I always forget WHAT chagacter mean "NOT" there ...
... And you can belive me: it's unreadable! |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
StanislavL,
It was unnecessary for me to have posted that comment.
I apologize.
though I did not say it, scripting languages without the use of NOT, can be unreadable. |
|
Back to top |
|
|
StanislavL
New User
Joined: 07 Apr 2009 Posts: 5 Location: SPb, RF
|
|
|
|
I've just found that the character "¬" is used in regexp instead of "^" ... So, I have 2 other questions:
1. Where do we need "^" ?
2. Is it a good idea to modify local translation tables , to translate ASCII "^" <-> EBCDIC "¬" ? |
|
Back to top |
|
|
|