[wiki] Assorted code snippets to customize TeXmacs' behaviour
How do we prevent session from adding a new line everytime ?
Which newline do you mean? A screenshot might be useful.
It’s the blank input you get after you hit enter.

I think you would have to modify the function field-process-input in progs\dynamic\session-edit, which is called in the redefinition of kbd-enter in sessions (I did not check further how kbd-enter is assigned to the enter key).
