Well guys, testing this project gets harder by the distance in upload periods.
(You could say AudioScope fatigue is setting in.)
Well on testing on numerous Linux flavours there are many that use terminal windows of varying sizes that CANNOT be adjusted using the terminal escape code so this is an update to check if the terminal in use CAN be adjusted and if not it immediately crashes out with the error report below; nothing is written to the storage media at this pont.
As you can see I have deliberately specified the size now to keep the aesthetics of the project right and in doing so will crash out if 80 columns by 24 lines is not detected.
Stats so far:-
# Total Lines=5187.
# Blank Lines=45.
# Code Lines=2375.
# Comments=2767, (including the builtin Manual).
# Filesize=223361 bytes.
Enjoy...
This User Gave Thanks to wisecracker For This Post:
We have a system running ssh. When a user logs in, they do not get the project they are assigned to (they run under "system"). I verify the project using the command "ps -e -o user,pid,ppid,args,project". If you do a "su - username", the user does get the project they are assigned to (and all... (2 Replies)
A new project was posted on your project board.
Project title: Bash Shell Tutoring
Estimated Budget:
$50/hr
Start date:
Immediately
Required skills:
Linux, Bash, Shell, UNIX
I work as a datawarehouse designer and developer.
Although I usually stick to the role of an analyst,... (0 Replies)
Hi Admin and Staff...
Thanks for hosting AudioScope.sh on this site. I have had the biggest surprise of my life today.
This months issue of the UK Linux magazine "Linux Format" have done a small piece on the project.
Issue April 2014, LXF 182, page 65...
This I never expected and I... (1 Reply)
Hi all...
Has _below_ ever been done in UNIX shell scripting before?
(I have done this easily in Python but this is using purely the shell.)
The DEMO version IS built and has been tested.
Pre-amble...
I now need at least one control pulse for the AudioScope.sh when in PURELY audio I/O mode,... (2 Replies)
Development machine:- Standard MBP 13 inch, OSX 10.7.5...
GNU bash, version 3.2.48(1)-release (x86_64-apple-darwin11)
Copyright (C) 2007 Free Software Foundation, Inc.
Scenario:- Audio capture for AudioScope.sh for CygWin without ANY third party installs.
I am trying my hardest to get a... (6 Replies)
Hi guys...
Well I have entered an area of partial insnity... ;o)
Below is a photo of the 'ALTDC' board for AudioScope.sh...
I have decided to incorporate all three methods for obtaining DC into this MBP via the MIC input.
1) VFO.
2) CHOPPER.
3) COUNTER.
The controller for the COUNTER... (9 Replies)
Boy oh boy, with only a MONO mic input to use AudioScope gets much more difficult when the ALTDC board is included.
It needs, so far, two hits at the MIC input with a single hit at the HEADPHONE audio output.
The first at the highest practical resolution for the AC component and the second... (0 Replies)
Hi all...
Apologies for any typos...
For those intersted in the AudioScope the next construction is finished.
I have not been totally idle but working out the hard stuff to be able to be very simple to build.
It is a single transistor simple timer that lasts for about 1.2 to 1.8 seconds.... (2 Replies)
Using AudioScope.sh on Ubuntu 17.04 from a live DVD disc I came across an error.
Consider the code below it is a MUCH shortened version of the KEYBOARD input in AudioScope.
#!/bin/bash
bash --version
uname -a
status=0
KEYBOARD()
{
read -r -p "Enter QUIT or EXIT to quit:- " kbinput
if ||... (11 Replies)
Discussion started by: wisecracker
11 Replies
LEARN ABOUT CENTOS
is_term_resized
resizeterm(3X)resizeterm(3X)NAME
is_term_resized, resize_term, resizeterm - change the curses terminal size
SYNOPSIS
#include <curses.h>
bool is_term_resized(int lines, int columns);
int resize_term(int lines, int columns);
int resizeterm(int lines, int columns);
DESCRIPTION
This is an extension to the curses library. It provides callers with a hook into the ncurses data to resize windows, primarily for use by
programs running in an X Window terminal (e.g., xterm). The function resizeterm resizes the standard and current windows to the specified
dimensions, and adjusts other bookkeeping data used by the ncurses library that record the window dimensions.
Most of the work is done by the inner function resize_term. The outer function resizeterm adds bookkeeping for the SIGWINCH handler. When
resizing the windows, resize_term blank-fills the areas that are extended. The calling application should fill in these areas with appro-
priate data. The resize_term function attempts to resize all windows. However, due to the calling convention of pads, it is not possible
to resize these without additional interaction with the application.
A support function is_term_resized is provided so that applications can check if the resize_term function would modify the window struc-
tures. It returns TRUE if the windows would be modified, and FALSE otherwise.
RETURN VALUE
Except as notes, these function return the integer ERR upon failure and OK on success. They will fail if either of the dimensions are less
than or equal to zero, or if an error occurs while (re)allocating memory for the windows.
NOTES
While these functions are intended to be used to support a signal handler (i.e., for SIGWINCH), care should be taken to avoid invoking them
in a context where malloc or realloc may have been interrupted, since it uses those functions.
If ncurses is configured to supply its own SIGWINCH handler, the resizeterm function ungetch's a KEY_RESIZE which will be read on the next
call to getch. This is used to alert an application that the screen size has changed, and that it should repaint special features such as
pads that cannot be done automatically.
If the environment variables LINES or COLUMNS are set, this overrides the library's use of the window size obtained from the operating sys-
tem. Thus, even if a SIGWINCH is received, no screen size change may be recorded.
SEE ALSO curs_variables(3X), wresize(3X).
AUTHOR
Thomas Dickey (from an equivalent function written in 1988 for BSD curses).
resizeterm(3X)