From: Nikita Kiryanov <nikita@compulab.co.il>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC 1/4] common: add ansi console base implementation
Date: Wed, 18 Mar 2015 15:06:09 +0200 [thread overview]
Message-ID: <55097841.4060108@compulab.co.il> (raw)
In-Reply-To: <1426286965-18117-2-git-send-email-danindrey@mail.ru>
Hi Andrey,
On 03/14/2015 12:49 AM, Andrey Danin wrote:
> This code is based on ansi implementation in cfb_console.
> It is adopted to be used in lcd and cfb_console drivers.
Please describe what changes you have made (if any) from the original code.
>
> Signed-off-by: Andrey Danin <danindrey@mail.ru>
> ---
> common/ansi_console.c | 355 +++++++++++++++++++++++++++++++++++++++++++++++++
> include/ansi_console.h | 39 ++++++
> 2 files changed, 394 insertions(+)
> create mode 100644 common/ansi_console.c
> create mode 100644 include/ansi_console.h
>
[...]
> +
> +static void console_putc(struct ansi_console_t *console, const char c)
> +{
> + switch (c) {
> + case '\r': /* back to first column */
> + console_caret_return(console);
> + break;
> +
> + case '\n': /* next line */
> + console_new_line(console, 1);
> + break;
> +
> + case '\t': /* tab 8 */
> + COL |= 0x0008;
> + COL &= ~0x0007;
This seems buggy. Not only does this limit us to one tab, it can potentially move the cursor
backwards. The LCD version of COL += 8 seems more correct.
--
Regards,
Nikita Kiryanov
next prev parent reply other threads:[~2015-03-18 13:06 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-13 22:49 [U-Boot] [RFC 0/4] ansi console support for lcd driver Andrey Danin
2015-03-13 22:49 ` [U-Boot] [RFC 1/4] common: add ansi console base implementation Andrey Danin
2015-03-18 13:06 ` Nikita Kiryanov [this message]
2015-03-13 22:49 ` [U-Boot] [RFC 2/4] video: cfb_console: use common ansi implementation Andrey Danin
2015-03-13 22:49 ` [U-Boot] [RFC 3/4] lcd: use ansi console Andrey Danin
2015-03-13 22:49 ` [U-Boot] [RFC 4/4] paz00: enable bootmenu Andrey Danin
2015-03-16 18:14 ` Stephen Warren
2015-03-17 7:58 ` Andrey Danin
2015-03-17 15:14 ` Stephen Warren
2015-03-18 12:58 ` [U-Boot] [RFC 0/4] ansi console support for lcd driver Nikita Kiryanov
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=55097841.4060108@compulab.co.il \
--to=nikita@compulab.co.il \
--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