Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Twitter translation from @ttdoda
あ、ありのまま今起こった事を話すぜ! 「おれはNeoVimのDECSLRM利用判定の修正をやっていたと思ったら、いつのまにかVimのDECSLRM利用自動判定を書いていた」
Oh, I will tell you what happened just as it is! "When I thought that I was working on fixing NeoVim's decision to use DECSLRM, I was writing Vim's automatic DECSLRM usage decision unexpectedly"
だってNeoVimってTERMRESPONSE関連が排除さてたのか、端末の応答を利用するような参考になるコードがないんだよ。Vimは背景色の自動判別とかの参考に出来るコードがあるから、マネすればいいんだもん。だよもん。
Because NeoVim was excluding the TERMRESPONSE association, there is no reference code to use the terminal's response. Vim has code that can be referred to as automatic discrimination of the background color, so you can do it manually. All right.
NeoVimってVimでいう所のTERMRESPONSEみたいな事ってやってないんだ
NeoVim does not do things like TERMRESPONSE in Vim
応答を待ったりして複雑になりやすいから嫌うのは判るんだけれど、端末の機能確認はやっぱり端末自体に問い合わせるのが一番だと思うんだ。
I understand that I dislike it because it tends to be complicated by waiting for a response, but I think that it is best to check the function of the terminal as it is to the terminal itself.
特に左右マージンに関してはDECRQMでDECLRMM対応を確認するのが紛れもなくて確実だし。
Especially for left and right margins it is definitely sure to confirm DECLRMM correspondence with DECRQM.
左右マージンに対応した主要な端末エミュレータはほぼDECRQMに対応しているかな。mltermが一昨日でた3.8.2で対応したってのがちょっと意外だったけれど。
Major terminal emulators that support left and right margin are almost compatible with DECRQM? Although it was somewhat surprising that mlterm corresponded with 3.8.2 which was the day before yesterday.
VT400以降の拡張機能に対応するんだったらまずDECRQM/DECRQSSに対応しようぜ~。これに対応すれば他の拡張機能に対応しているか確認が出来る(場合もある)
If you are planning to support extended functions after VT 400, let's correspond to DECRQM / DECRQSS first. If you respond to this, you can check whether it supports other extended functions (in some cases)
という事でVimでDECRQMを使ってDECLRMMの利用可否を調べて、t_CVを自動設定する差分
That is why Vim uses DECRQM to check the availability of DECLRMM, the difference to set t_CV automatically
https://gist.github.com/ttdoda/fdebb57f5a57c42e90fb9708aecfeffa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.