Skip to content

Instantly share code, notes, and snippets.

@timstott
Created July 6, 2019 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timstott/cf10d84e906bd512ceecba6f3cdb4876 to your computer and use it in GitHub Desktop.
Save timstott/cf10d84e906bd512ceecba6f3cdb4876 to your computer and use it in GitHub Desktop.
disable mosh repaint (CTRL-L) nixpkgs overlay
diff --git a/src/frontend/stmclient.cc b/src/frontend/stmclient.cc
index 8523f9c..8cfbdae 100644
--- a/src/frontend/stmclient.cc
+++ b/src/frontend/stmclient.cc
@@ -373,9 +373,6 @@ bool STMClient::process_user_input( int fd )
lf_entered = ( (the_byte == 0x0A) || (the_byte == 0x0D) ); /* LineFeed, Ctrl-J, '\n' or CarriageReturn, Ctrl-M, '\r' */
- if ( the_byte == 0x0C ) { /* Ctrl-L */
- repaint_requested = true;
- }
network->get_current_state().push_back( Parser::UserByte( the_byte ) );
}
self: super:
{
mosh = super.mosh.overrideAttrs (attrs: {
patches = attrs.patches ++ [./disable-repaint-with-ctrl-l.patch];
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment