form = new_form(fields) scale_form(form, &rows, &cols) win = newwin(rows+3, cols+4, 3, 20) subwin = derwin(win, rows, cols, 1, 2) set_form_sub(form, subwin) box(win, 0, 0) keypad(win, TRUE) post_form(form) refresh() wrefresh(win) wrefresh(subwin) //设置覆盖模式 form_driver(form, REQ_OVL_MODE)
标签: form cols rows scale_form
上传时间: 2017-06-12
上传用户:wff
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //设置模式 cbreak() noecho() keypad(stdscr, TRUE) //建立窗口 win = newwin(h, w, 3, 20) box(win, 0, 0) keypad(win, TRUE) wmove(win, cury, curx) mvaddstr(16, 1, "Press arrow keys to move the cursor within the window.\n") mvaddstr(17, 1, "Press q to quit.\n") refresh() wrefresh(win)
标签: EXIT_FAILURE initcurs initscr perror
上传时间: 2013-12-20
上传用户:FreeSky
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak() noecho() keypad(stdscr, TRUE) //建立菜单项 for(i=0 i<N_ITEMS i++){ items[i] = new_item(months[i], "") } //建立菜单 mymenu = new_menu(items) //设置为5行单列的菜单 set_menu_format(mymenu, 5, 1) set_menu_mark(mymenu, "*") //获得菜单的行数很列数 scale_menu(mymenu, &mrows, &mcols) //建立窗口和子窗口 win = newwin(mrows + 2, mcols + 2, 3, 30) keypad(win, TRUE) box(win, 0, 0) subwin = derwin(win, 0, 0, 1, 1) //设置菜单的窗口 set_menu_sub(mymenu, subwin) //在子窗口上放置菜单 post_menu(mymenu) refresh() wrefresh(win)
标签: EXIT_FAILURE initcurs initscr cbreak
上传时间: 2013-11-29
上传用户:小眼睛LSL
This code outputs various NMEA strings to a com port. The code was originally used to test naviation programmes. First select the required com port and the required NMEA message string. There is a default starting position but this can be changed to suit just by typing in a new position. Click on the Start button the current position displayed will change according to the speed and heading selected and the selected NMEA string will be output to the com port and will reflect the current position as displayed. There is a text box which is normally not visible. If you change this to visible the relevant NMEA string can be displayed.
标签: code originally outputs naviati
上传时间: 2013-11-30
上传用户:熊少锋
具有检测FIR滤波器单位脉冲响应h[n]中零系数(zero tap detection)功能的LMS算法自适应均衡器,可处理相关输入(colored inputs)和独立输入(white inputs). 检测出零系数的个数和位置,减少后续计算次数,提高算法效率。
上传时间: 2014-08-20
上传用户:tzl1975
The sample provided here is a simple control panel application that will just display the memory usage of the system using a message box. Windows Mobile
标签: application provided control display
上传时间: 2014-01-25
上传用户:xwd2010
This m file hide an image jpeg,png in another jpeg,png image. The height and width of the secret image is in LSB of 1st 32 pixels of 1st row of the cover image.This helps in the recovery of secret image. The secret image must be smaller than cover image.A message box will appear with a number ,that number is the maximum product of width and height of secret image that can be successfully embedded in the cover image. The final png image will appear in workspace with random name.This image contains the secret image.One such png image is in the zip file with name 4447.png it contains an image of res 100x122.
上传时间: 2017-07-25
上传用户:gououo
A java application - processing which can be downloaded free from processing.org Here it uses a free library - OpenCV - made by intel. .. to convert all the pixels in an image - in fact in a movie - a capture from the webcam. If the color of a pixel is "higher" comparing to a threshold it turns black - otherwise it becomes white.
标签: processing application downloaded which
上传时间: 2014-01-15
上传用户:D&L37
Memory allocation in C Dynamic memory allocation and the structures that implement it in C are so universal that they re sometimes treated as a black box. In the real world of embedded systems, that may not be desirable or even possible.
标签: allocation structures implement Dynamic
上传时间: 2017-09-05
上传用户:阿四AIR
This is an analog signal communication simulator, usign frequency modulation. It is designed in MATLAB-Simulink. The communications channel beetween the transmitter and the reciever is supposed to be affected by additive white Gaussian noise.
标签: communication modulation frequency simulator
上传时间: 2013-12-25
上传用户:王楚楚