Created
July 6, 2019 11:33
-
-
Save timstott/cf10d84e906bd512ceecba6f3cdb4876 to your computer and use it in GitHub Desktop.
disable mosh repaint (CTRL-L) nixpkgs overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ) ); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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