/* $Id: drv_Curses.c,v 1.10 2005/05/08 04:32:44 reinelt Exp $ * * pure ncurses based text driver * * Copyright (C) 2004 Michael Reinelt * Copyright (C) 2004 The LCD4Linux Team * * based on the old Curses/Text driver which is * Copyright (C) 2001 Leopold Toetsch * * This file is part of LCD4Linux. * * LCD4Linux is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2, or (at your option) * any later version. * * LCD4Linux is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. * * * $Log: drv_Curses.c,v $ * Revision 1.10 2005/05/08 04:32:44 reinelt * CodingStyle added and applied * * Revision 1.9 2005/01/18 06:30:22 reinelt * added (C) to all copyright statements * * Revision 1.8 2004/06/26 12:04:59 reinelt * * uh-oh... the last CVS log message messed up things a lot... * * Revision 1.7 2004/06/26 09:27:20 reinelt * * added '-W' to CFLAGS * changed all C++ comments to C ones * cleaned up a lot of signed/unsigned mistakes * * Revision 1.6 2004/06/20 10:09:54 reinelt * * 'const'ified the whole source * * Revision 1.5 2004/06/06 06:51:59 reinelt * * do not display end splash screen if quiet=1 * * Revision 1.4 2004/06/05 06:41:39 reinelt * * chancged splash screen again * * Revision 1.3 2004/06/05 06:13:11 reinelt * * splash screen for all text-based display drivers * * Revision 1.2 2004/06/02 09:41:19 reinelt * * prepared support for startup splash screen * * Revision 1.1 2004/05/26 11:37:36 reinelt * * Curses driver ported. * */ /* * * exported fuctions: * * struct DRIVER drv_Curses * */ #include "config.h" #include #include #include #include #include #include "debug.h" #include "cfg.h" #include "qprintf.h" #include "plugin.h" #include "widget.h" #include "widget_text.h" #include "widget_bar.h" #include "drv.h" #include "drv_generic_text.h" static char Name[] = "Curses"; static WINDOW *w = NULL; static WINDOW *e = NULL; static int EROWS; /****************************************/ /*** hardware dependant functions ***/ /****************************************/ static void drv_Curs_clear(void) { werase(w); box(w, 0, 0); wrefresh(w); } static void drv_Curs_write(const int row, const int col, const char *data, const int len) { int l = len; char *p; while ((p = strpbrk(data, "\r\n")) != NULL) { *p = '\0'; } if (col < DCOLS) { if (DCOLS - col < l) l = DCOLS - col; mvwprintw(w, row + 1, col + 1, "%.*s", l, data); wmove(w, DROWS + 1, 0); wrefresh(w); } } static void drv_Curs_defchar(const __attribute__ ((unused)) int ascii, const __attribute__ ((unused)) unsigned char *buffer) { /* empty */ } /* ncures scroll SIGSEGVs on my system, so this is a workaroud */ int curses_error(char *buffer) { static int lines = 0; static char *lb[100]; int start, i; char *p; if (e == NULL) return 0; /* replace \r, \n with underscores */ while ((p = strpbrk(buffer, "\r\n")) != NULL) { *p = '_'; } if (lines >= EROWS) { free(lb[0]); for (i = 1; i <= EROWS; i++) { lb[i - 1] = lb[i]; } start = 0; } else { start = lines; } lb[lines] = strdup(bu
# 2014-04-18 Antti Palosaari <crope@iki.fi>
# generated from http://www.digita.fi/kuluttajat/tv/nakyvyysalueet/kanavanumerot_ja_taajuudet
T 626000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 682000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 578000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE
T 522000000 8MHz 2/3 NONE QAM64 8k 1/8 NONE