kelseyhightower / nocode

The best way to write secure and reliable applications. Write nothing; deploy nowhere.
Apache License 2.0
60.87k stars 4.72k forks source link

actually getting some output! #1803

Open pberto opened 6 years ago

pberto commented 6 years ago

When I execute nocode command I actually get some output, see below:

Prompt before no code:

$

After pressing enter:

$
$

I believe nocode should prevent user form pressing enter and avoid a new prompt line. Fix this asap please. This is fucking unacceptable.

rockmandash commented 6 years ago

Maybe try this

dfamp commented 6 years ago
ghost commented 6 years ago

or this

pberto commented 6 years ago

Found a workaround:

export PS1=""

Then you only get two newlines on return, still it can be improved: we really don't want that second newline!

pberto commented 6 years ago

Ok, after deep thinking here's the solution, @kelseyhightower please make sure to always execute xmodmap -e 'keycode 13=' BEFORE nocode is executed, therefore typing this:

And pressing enter (note: enter key code = 13) will produce:

This is a linux solution, osx and windows needs more thinking. Once executed, you must rehab the enter key of course. At least if you want to keep using other programs, though after using nocode why would you? It does everything already. Go out for a beer or something.

huyvohcmc commented 6 years ago

I know this sounds silly, but have you try it on iterm2?