on master help sign in
correct move cursor require bytes for double width char

Ignore-this: 6e0d31a1960d9f011eaea73e234c7788 darcs-hash:20100602044803-ffa78-1cc8d839a6fcde07eb663e1eb2777532a1aa9c58.gz

commit7759e6e42f8ab62dd5c495cc98a1cc3708afbdf4 authorYoshikuni Jujo <PAF01143@nifty.ne.jp> dateTue 1 Jun 2010, 21:48 (16 years ago) parent6818ffb
1 file changed+4−2
src/Graphics/Vty/Terminal/Generic.hs+4−2
src/Graphics/Vty/Terminal/Generic.hs+4−2
@@ -224,8 +224,10 @@ output_picture (DisplayHandle d t s) pic = do
224224 + required_bytes d initial_attr diffs ops
225225 + case pic_cursor pic of
226226 NoCursor -> 0
227− Cursor x y -> show_cursor_required_bytes d
228− + move_cursor_required_bytes d x y
227+ Cursor x y -> let m = cursor_output_map ops $ pic_cursor pic
228+ ( ox, oy ) = char_to_output_pos m ( x, y )
229+ in show_cursor_required_bytes d
230+ + move_cursor_required_bytes d ox oy
229231
230232 -- ... then serialize
231233 liftIO $ allocaBytes (fromEnum total) $ \start_ptr -> do