|
@@ -2054,6 +2054,7 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co
|
|
|
unsigned long draw_from = 0, draw_to = 0;
|
|
|
struct vc_data *vc;
|
|
|
unsigned char vc_attr;
|
|
|
+ struct vt_notifier_param param;
|
|
|
uint8_t rescan;
|
|
|
uint8_t inverse;
|
|
|
uint8_t width;
|
|
@@ -2113,6 +2114,8 @@ static int do_con_write(struct tty_struct *tty, const unsigned char *buf, int co
|
|
|
if (IS_FG(vc))
|
|
|
hide_cursor(vc);
|
|
|
|
|
|
+ param.vc = vc;
|
|
|
+
|
|
|
while (!tty->stopped && count) {
|
|
|
int orig = *buf;
|
|
|
c = orig;
|
|
@@ -2201,6 +2204,11 @@ rescan_last_byte:
|
|
|
tc = vc->vc_translate[vc->vc_toggle_meta ? (c | 0x80) : c];
|
|
|
}
|
|
|
|
|
|
+ param.c = tc;
|
|
|
+ if (atomic_notifier_call_chain(&vt_notifier_list, VT_PREWRITE,
|
|
|
+ ¶m) == NOTIFY_STOP)
|
|
|
+ continue;
|
|
|
+
|
|
|
/* If the original code was a control character we
|
|
|
* only allow a glyph to be displayed if the code is
|
|
|
* not normally used (such as for cursor movement) or
|