From: Mike Frysinger <vapier@gentoo.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] [driver][cfb] Make the software cursor non-destructive
Date: Tue, 8 Nov 2011 08:43:07 -0500 [thread overview]
Message-ID: <201111080843.08096.vapier@gentoo.org> (raw)
In-Reply-To: <1320742769-30423-1-git-send-email-gabeblack@chromium.org>
On Tuesday 08 November 2011 03:59:29 Gabe Black wrote:
> When printing the string "\r\n" to the framebuffer console, the first
> character of the current line was being replaced with a space. The "boot"
> prompt would become the "oot" prompt. This change makes the cursor
> non-destructive so that no matter where it goes on its way to where it's
> supposed to be, the end result is that the cursor is where it's supposed to
> be with the other text preserved intact.
"preserved intact" ... word for word verbose redundant ? ;)
> --- a/drivers/video/cfb_console.c
> +++ b/drivers/video/cfb_console.c
>
> /*
> * Cursor definition:
> * CONFIG_CONSOLE_CURSOR: Uses a timer function (see
> drivers/input/i8042.c)
> - * to let the cursor blink. Uses the macros
> - * CURSOR_OFF and CURSOR_ON.
> + * to let the cursor blink.
is this intentional ? seems like the existing doc strings are fine ...
> @@ -248,9 +247,9 @@
>
> -#define CURSOR_ON console_cursor(1)
> +#define CURSOR_ON console_cursor(1)
unrelated whitespace change
> -#define CURSOR_ON
> -#define CURSOR_OFF video_putchar(console_col * VIDEO_FONT_WIDTH,\
> - console_row * VIDEO_FONT_HEIGHT, ' ')
> +void console_cursor (int state);
> +#define CURSOR_ON console_cursor(1)
> +#define CURSOR_OFF console_cursor(0)
> #define CURSOR_SET video_set_cursor()
so now the CONFIG_CONSOLE_CURSOR and CONFIG_VIDEO_SW_CURSOR code paths wrt
CURSOR_* definitions are the same. seems like they should be unified.
> +static void video_invertchar (int xx, int yy)
no space before that "("
the rest looks fine to me, but let's CC the video maintainer ...
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111108/1281fd0e/attachment.pgp
next prev parent reply other threads:[~2011-11-08 13:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-08 8:59 [U-Boot] [PATCH] [driver][cfb] Make the software cursor non-destructive Gabe Black
2011-11-08 13:43 ` Mike Frysinger [this message]
2011-11-08 21:47 ` [U-Boot] [PATCH v2] " Gabe Black
2011-11-09 22:31 ` Mike Frysinger
2011-11-30 9:55 ` Gabe Black
2011-11-30 10:04 ` Anatolij Gustschin
2011-11-30 23:50 ` [U-Boot] [PATCH v3] video: cfb_console: " Anatolij Gustschin
2011-12-05 21:07 ` Anatolij Gustschin
2012-03-18 18:38 ` Wolfgang Denk
2012-03-18 19:01 ` Anatolij Gustschin
2012-03-18 19:31 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201111080843.08096.vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox