unrepl

discussing specification of an edn-based repl and its implementations.
pesterhazy 2017-07-05T15:44:20.352297Z

next unravel version will indicate unreadable forms (mismatched parentheses etc.) live and in red

pesterhazy 2017-07-05T15:50:49.582672Z

not sure I like the red prompt as an indicator - any ideas about an unobtrusive signal to the user?

cgrand 2017-07-05T15:55:09.735454Z

What can you do?

pesterhazy 2017-07-05T15:55:54.762284Z

what do you mean?

cgrand 2017-07-05T15:57:28.818655Z

can you add a character thatโ€™s always displayed after the cursor?

cgrand 2017-07-05T15:57:39.825239Z

maybe not a good idea anyway

pesterhazy 2017-07-05T15:57:46.829742Z

I can print anything, then reprompt

pesterhazy 2017-07-05T15:57:49.831669Z

I can change the prompt

pesterhazy 2017-07-05T15:57:55.835303Z

I can clear the screen below the prompt

pesterhazy 2017-07-05T15:58:04.840225Z

I can move the cursor around

cgrand 2017-07-05T15:58:11.844313Z

what about a glyph like ๐Ÿšซ

pesterhazy 2017-07-05T15:58:44.863965Z

ah! a unicode character

cgrand 2017-07-05T15:59:03.875442Z

an emoji sadly

cgrand 2017-07-05T15:59:08.877770Z

ah got it

cgrand 2017-07-05T15:59:08.878379Z

U+20E0

cgrand 2017-07-05T15:59:59.907946Z

โƒ 

cgrand 2017-07-05T16:01:19.958454Z

(but a combining caharacter so may print on top of the previous one when unicode moons align)

pesterhazy 2017-07-05T16:01:39.970821Z

yeah I had the combining char problem

cgrand 2017-07-05T16:01:43.973130Z

what about making it a trailing character?

cgrand 2017-07-05T16:02:13.991295Z

usually my eyes are at the end of the form (notwithstanding heavy edits)

pesterhazy 2017-07-05T16:02:26.999144Z

the problem with a trailing char is that I'll need to re-prompt for every keystroke I think

pesterhazy 2017-07-05T16:02:58.018143Z

note sure how important it is to limit redraws

pesterhazy 2017-07-05T16:03:58.052941Z

can you change the color of the caret/block cursor?

dominicm 2017-07-05T16:04:23.067005Z

fwiw, I liked the red

pesterhazy 2017-07-05T16:07:58.189572Z

@dominicm changing the prompt color is definitely the simplest option

volrath 2017-07-05T18:14:27.192283Z

super cool @pesterhazy, I also like the emoji, maybe you can substitute the => for a red ๐Ÿšซ

pesterhazy 2017-07-05T18:15:48.234116Z

yeah exactly. I've seen actual colorful emojis in iterm2 so there must be a way to show those

dominicm 2017-07-05T20:55:47.924255Z

be careful though, because emojis don't work well across most linux terms

richiardiandrea 2017-07-05T21:04:39.176378Z

Do you have the error info? Can you highlight the char that breaks? In paredit it is usually like that (where it can)...I know it is maybe more work ๐Ÿ˜€

richiardiandrea 2017-07-05T21:06:23.223165Z

Also the classic clue that is universally recognized is that it does not evaluate but goes newline waiting for a correct terminator...I am not saying it is the best, but it would be consistent with readline (I guess?)

richiardiandrea 2017-07-05T21:07:29.252095Z

Sorry not sure readline is the culprit there but I hope you got the idea

pesterhazy 2017-07-05T21:41:12.080789Z

Right, yeah the change will not affect pressing return. But it will give you a visual clue that the form is incomplete even before pressing return

pesterhazy 2017-07-05T21:42:07.101144Z

Highliting the location of the exception would be best, I agree