summaryrefslogtreecommitdiff
path: root/src/remote.cc
AgeCommit message (Collapse)Author
2017-08-28Expose client pid as $kak_client_pidMaxime Coste
As requested in #1414
2017-08-23Support specifying an exit status on `quit` commandsMaxime Coste
The current client exit status can be specified as an optional parameter, is nothing is given the exit status will be 0. Fixes #1230
2017-06-26Fix various undefined behaviours detected by UBSanMaxime Coste
2017-04-12Place hardware terminal cursor at the current main cursor/prompt cursor positionMaxime Coste
Fixes #1318 Also fixes https://gitlab.com/gnachman/iterm2/issues/5408
2017-03-16Fixes some clang-tidy warning and add a few missing meta.hh includeMaxime Coste
2017-03-07Replace IdMap with HashMapMaxime Coste
2017-01-21Support the +line syntax for clients as well.Maxime Coste
Fix a crash on daemon quit as well.
2017-01-08Apply clang-tidy modernize to the codebaseMaxime Coste
2017-01-01Fix remaining uses of hardcoded /tmp to get the socket pathsMaxime Coste
Fixes #1097
2016-12-20Ensure we return 0 on exit from graceful disconnectionMaxime Coste
Fixes #1042
2016-12-20Fix hardcoded uses of "/tmp"Maxime Coste
Closes #1032
2016-12-17Add more diagnostic information when failing to bind/listen to socketMaxime Coste
2016-12-17Ignore eventual / suffix in TMPDIRMaxime Coste
2016-12-15Improve general security of the unix socketsMaxime Coste
* Use the stricky bit on the shared kakoune folder * Do not allow read/write access to user folder * Respect $TMPDIR when set Fixes #1007
2016-12-01Rework handling of initial coordinates so that init commands can change themMaxime Coste
Fixes #944
2016-12-01Only write to remote socket when we know they are writableMaxime Coste
Buffer data (in an horribly innefficient way for now), and use the event manager to watch for the socket being ready for a write. Fixes #945
2016-12-01Fix crash when a client sends a packet advertising a wrong sizeMaxime Coste
If the given size is less than the header size, the message is clearly invalid, disconnect the client in that case.
2016-12-01Make FDWatcher support Read, Write and Except events, instead of just ReadMaxime Coste
2016-11-29Simplify greatly UI input handlingMaxime Coste
This round trip through an input callback expected to call is_key_available and get_key was overcomplicated, just send the keys as they arrive, the client is already buffering due to urgent event mode.
2016-11-29Clean up includes of user_interface.hhMaxime Coste
2016-11-29Small remote code cleanupMaxime Coste
2016-10-06Handle all available keys when a RemoteClient input is availableMaxime Coste
We were just treating the next key. Which led to <esc> byte remaining after suspend, that led that <esc> being interpretted as <alt> when the following key got available. Fixes #739
2016-10-01Support codepoints of variable widthMaxime Coste
Add a ColumnCount type and use it in place of CharCount whenever more appropriate, take column size of codepoints into account for vertical movements and docstring wrapping. Fixes #811
2016-09-05Fix handling of remote errors in the accepterMaxime Coste
2016-09-04Rework client quitting and handling of remote errorsMaxime Coste
Client quitting no longer immediately unwinds, client is just pushed for deletion until we get back to the main loop, similarly to what happens for buffer and window deletion.
2016-09-04Use proper buffering when reading remote messagesMaxime Coste
Messages now have their size in a header, along with their type and are only executed once fully received. We dont block anymore while trying to read a full message.
2016-09-04Rework binary network protocol to be more message basedMaxime Coste
We cannot just write to Kakoune socket from any application anymore, use of kak -p is mandatory, as we now have an introduction to write.
2016-08-30Add a fd_readable(int fd) helper functionMaxime Coste
Use it instead of direct calls to select scatered around the code base.
2016-08-09Small code cleanupsMaxime Coste
2016-07-28Tweak session renaming codeMaxime Coste
2016-07-24Add 'session' command to change remote session nameEnrico Lumetti
2016-06-06Check session valididty on kak -l and support kak -clear for clearing the ↵Maxime Coste
dead ones Fixes #689
2016-04-11Merge remote-tracking branch 'lenormf/buffer-padding'Maxime Coste
2016-03-07Handle <c-l> redrawing on the server sideMaxime Coste
That way we can force a redraw at any moment, including during batch execution.
2016-02-17Allow users to chose how the buffers are paddedFrank LENORMAND
2016-02-10Use a custom SSO aware string backendMaxime Coste
2016-01-20Support connecting to other users sessions by using <user>/<session>Maxime Coste
2015-12-10Fix "unused result" warnings for several system calls.Frank LENORMAND
2015-11-18Send client dimensions on connection, avoid a race condition.Maxime Coste
Fixes #429
2015-10-08Auto fork server when suspending the local clientMaxime Coste
That way, other clients can still be serviced by the server.
2015-10-08Detect ungraceful exits, and backup modified buffers in these casesMaxime Coste
2015-10-05Use DisplayLine for menu choicesMaxime Coste
2015-09-18Keep it simple, remove all that sorted id map thingMaxime Coste
2015-09-16Keep sorted state when transmitting id mapsMaxime Coste
2015-09-16Store key hash in IdMapMaxime Coste
2015-09-16Use IdMap instead of UnorderedMap for ui options and env varsMaxime Coste
2015-09-15use getpwuid(geteuid())->pw_name rather than getlogin()Maxime Coste
getlogin() can fail when stdin is not a tty on certain configuration as it needs to find a controling terminal.
2015-09-03Remove some useless code in remote.ccMaxime Coste
2015-08-23Rework resize handlingMaxime Coste
Fixes #383
2015-08-23Move session socket to /tmp/kakoune/<user name>/<session>Maxime Coste