Move all to deprecated folder.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
[PATCH] clear ixon termios flag on initialization
|
||||
|
||||
Otherwise ctrl-S/Q gets intercepted by the tty layer instead of
|
||||
handled by uemacs.
|
||||
|
||||
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
|
||||
diff --git a/posix.c b/posix.c
|
||||
index 97edd9f052b1..352c4712b689 100644
|
||||
--- a/posix.c
|
||||
+++ b/posix.c
|
||||
@@ -53,17 +53,17 @@ void ttopen(void)
|
||||
/*
|
||||
* base new settings on old ones - don't change things
|
||||
* we don't know about
|
||||
*/
|
||||
ntermios = otermios;
|
||||
|
||||
/* raw CR/NL etc input handling, but keep ISTRIP if we're on a 7-bit line */
|
||||
ntermios.c_iflag &= ~(IGNBRK | BRKINT | IGNPAR | PARMRK
|
||||
- | INPCK | INLCR | IGNCR | ICRNL);
|
||||
+ | INPCK | INLCR | IGNCR | ICRNL | IXON);
|
||||
|
||||
/* raw CR/NR etc output handling */
|
||||
ntermios.c_oflag &=
|
||||
~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
|
||||
|
||||
/* No signal handling, no echo etc */
|
||||
ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
|
||||
| ECHONL | NOFLSH | TOSTOP | ECHOCTL |
|
||||
@@ -0,0 +1,16 @@
|
||||
From termios(3): "XCASE (not in POSIX; not supported under Linux)".
|
||||
musl does not define it, and even if defined it's a no-op.
|
||||
|
||||
Signed-off-by: Alex Suykov <alex.suykov@gmail.com>
|
||||
|
||||
--- a/posix.c
|
||||
+++ b/posix.c
|
||||
@@ -65,7 +65,7 @@
|
||||
~(OPOST | ONLCR | OLCUC | OCRNL | ONOCR | ONLRET);
|
||||
|
||||
/* No signal handling, no echo etc */
|
||||
- ntermios.c_lflag &= ~(ISIG | ICANON | XCASE | ECHO | ECHOE | ECHOK
|
||||
+ ntermios.c_lflag &= ~(ISIG | ICANON | ECHO | ECHOE | ECHOK
|
||||
| ECHONL | NOFLSH | TOSTOP | ECHOCTL |
|
||||
ECHOPRT | ECHOKE | FLUSHO | PENDIN | IEXTEN);
|
||||
|
||||
7
deprecated/firmware/buildroot/package/uemacs/Config.in
Normal file
7
deprecated/firmware/buildroot/package/uemacs/Config.in
Normal file
@@ -0,0 +1,7 @@
|
||||
config BR2_PACKAGE_UEMACS
|
||||
bool "uemacs"
|
||||
select BR2_PACKAGE_NCURSES
|
||||
help
|
||||
A small emacs.
|
||||
|
||||
https://git.kernel.org/cgit/editors/uemacs/uemacs.git/
|
||||
22
deprecated/firmware/buildroot/package/uemacs/uemacs.mk
Normal file
22
deprecated/firmware/buildroot/package/uemacs/uemacs.mk
Normal file
@@ -0,0 +1,22 @@
|
||||
################################################################################
|
||||
#
|
||||
# uemacs
|
||||
#
|
||||
################################################################################
|
||||
|
||||
UEMACS_VERSION = 8841922689769960fa074fbb053cb8507f2f3ed9
|
||||
UEMACS_SITE = $(BR2_KERNEL_MIRROR)/scm/editors/uemacs/uemacs.git
|
||||
UEMACS_SITE_METHOD = git
|
||||
UEMACS_DEPENDENCIES = ncurses
|
||||
|
||||
define UEMACS_BUILD_CMDS
|
||||
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
CC="$(TARGET_CC)" DEFINES="-DAUTOCONF -DPOSIX -DUSG" \
|
||||
CFLAGS+="$(TARGET_CFLAGS) " LIBS="$(TARGET_CFLAGS) -lncurses"
|
||||
endef
|
||||
|
||||
define UEMACS_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -m 0755 -D $(@D)/em $(TARGET_DIR)/usr/bin/em
|
||||
endef
|
||||
|
||||
$(eval $(generic-package))
|
||||
Reference in New Issue
Block a user