From: Nigel Cunningham <ncunningham@users.sourceforge.net>
To: viro@parcelfarce.linux.theplanet.co.uk
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: PATCH: Export console functions for use by Software Suspend nice display
Date: Fri, 23 Jan 2004 07:38:13 +1300 [thread overview]
Message-ID: <1074796577.12771.81.camel@laptop-linux> (raw)
In-Reply-To: <20040122082438.GV21151@parcelfarce.linux.theplanet.co.uk>
[-- Attachment #1: Type: text/plain, Size: 1564 bytes --]
Hi.
I'm not sure that write is what I want. At the very least, it will make
the code harder to read and maintain. Here's a small portion of what I'm
currently doing:
/* Print version */
posn[0] = (unsigned char) (0);
posn[1] = (unsigned char) (video_num_lines);
putconsxy(suspend_console, posn);
cond_console_print(swsusp_version, strlen(swsusp_version));
/* Print header */
posn[0] = (unsigned char) ((video_num_columns - 29) / 2);
posn[1] = (unsigned char) ((video_num_lines / 3) -4);
putconsxy(suspend_console, posn);
The output looks something like this:
-----
S U S P E N D T O D I S K
Writing caches...
[-------- 120/640MB ]
2.0-rc4
-----
Bootsplash is also supported, so there's an even nicer version :>
Regards,
Nigel
On Thu, 2004-01-22 at 21:24, viro@parcelfarce.linux.theplanet.co.uk
wrote:
> On Thu, Jan 22, 2004 at 09:12:00PM +1300, Nigel Cunningham wrote:
> > Hi.
> >
> > Here's a second patch; this exports gotoxy, reset_terminal, hide_cursor,
> > getconsxy and putconsxy for use in Software Suspend's nice display.
>
> Why don't you open /dev/console on rootfs and use write(2)?
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
My work on Software Suspend is graciously brought to you by
LinuxFund.org.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2004-01-22 18:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-22 8:12 PATCH: Export console functions for use by Software Suspend nice display Nigel Cunningham
2004-01-22 8:24 ` viro
2004-01-22 18:38 ` Nigel Cunningham [this message]
2004-01-22 20:35 ` Daniel Jacobowitz
2004-01-23 2:49 ` Benjamin Herrenschmidt
2004-01-23 3:07 ` Nigel Cunningham
2004-01-23 3:12 ` Benjamin Herrenschmidt
2004-01-23 3:27 ` Nigel Cunningham
2004-01-23 3:18 ` Nigel Cunningham
2004-01-22 8:28 ` Christoph Hellwig
2004-01-22 9:02 ` Nigel Cunningham
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=1074796577.12771.81.camel@laptop-linux \
--to=ncunningham@users.sourceforge.net \
--cc=linux-kernel@vger.kernel.org \
--cc=viro@parcelfarce.linux.theplanet.co.uk \
/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