From e61e9652241a8e85ffdbb6dc6e48375e30ea9d40 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Wed, 29 Jan 2020 15:57:04 +0000 Subject: Pass terminator to osc dispatcher Even though the ST terminator is the only officially supported terminator, some applications still rely on BEL to work properly. Both have been supported historically, however there was no way for the terminal to tell which terminator was used. Since OSC escapes frequently offer the `?` parameter to query for the current format, some applications expect the response terminator to match the request terminator. To make it possible to support this, the osc_dispatcher is now informed when the BEL terminator was used. Since the C1 ST terminator was not yet supported for OSC escapes, support for it has also been added. --- vte_generate_state_changes/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vte_generate_state_changes/src') diff --git a/vte_generate_state_changes/src/lib.rs b/vte_generate_state_changes/src/lib.rs index 5cfb3ac..cae8f65 100644 --- a/vte_generate_state_changes/src/lib.rs +++ b/vte_generate_state_changes/src/lib.rs @@ -1,3 +1,5 @@ +#![deny(clippy::all, clippy::if_not_else, clippy::enum_glob_use, clippy::wrong_pub_self_convention)] + extern crate proc_macro; use std::iter::Peekable; @@ -53,7 +55,7 @@ fn states_stream(iter: &mut impl Iterator) -> TokenStream { /// Generate the array assignment statements for one origin state. fn state_entry_stream(iter: &mut Peekable) -> TokenStream { // Origin state name - let state = iter.next().unwrap().into(); + let state = iter.next().unwrap(); // Token stream with all the byte->target mappings let mut changes_stream = next_group(iter).into_iter().peekable(); -- cgit