packages.subr (052f89691c59e17ffd322a793a3d298e66f51278) | packages.subr (f4844f65a9213b76ff8cf3cc0c9d881631c34c3a) |
---|---|
1if [ ! "$_PACKAGES_PACKAGES_SUBR" ]; then _PACKAGES_PACKAGES_SUBR=1 2# 3# Copyright (c) 2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 293 unchanged lines hidden (view full) --- 302 eval f_dialog_menu_with_help_size height width rows \ 303 \"\$DIALOG_TITLE\" \ 304 \"\$DIALOG_BACKTITLE\" \ 305 \"\$prompt\" \ 306 \"\$hline\" \ 307 $menu_list 308 local menu_choice 309 menu_choice=$( eval $DIALOG \ | 1if [ ! "$_PACKAGES_PACKAGES_SUBR" ]; then _PACKAGES_PACKAGES_SUBR=1 2# 3# Copyright (c) 2013 Devin Teske 4# All Rights Reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions 8# are met: --- 293 unchanged lines hidden (view full) --- 302 eval f_dialog_menu_with_help_size height width rows \ 303 \"\$DIALOG_TITLE\" \ 304 \"\$DIALOG_BACKTITLE\" \ 305 \"\$prompt\" \ 306 \"\$hline\" \ 307 $menu_list 308 local menu_choice 309 menu_choice=$( eval $DIALOG \ |
310 --title \"\$DIALOG_TITLE\" \ 311 --backtitle \"\$DIALOG_BACKTITLE\" \ 312 --hline \"\$hline\" \ 313 --item-help \ 314 --default-item \"\$defaultitem\" \ 315 --ok-label \"$msg_select\" \ 316 --cancel-label \"$msg_cancel\" \ 317 --menu \"\$prompt\" \ 318 $height $width $rows \ 319 $menu_list \ 320 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD 321 ) | 310 --title \"\$DIALOG_TITLE\" \ 311 --backtitle \"\$DIALOG_BACKTITLE\" \ 312 --hline \"\$hline\" \ 313 --item-help \ 314 --default-item \"\$defaultitem\" \ 315 --ok-label \"$msg_select\" \ 316 --cancel-label \"$msg_cancel\" \ 317 --menu \"\$prompt\" \ 318 $height $width $rows \ 319 $menu_list \ 320 2>&1 >&$DIALOG_TERMINAL_PASSTHRU_FD 321 ) |
322 local retval=$? 323 f_dialog_menutag_store -s "$menu_choice" 324 return $retval 325} 326 327# f_package_index_get_page $category $page [$var_to_set [$var_to_get]] 328# 329# Obtain a [potentially cached] page of the INDEX file for a given $category. --- 18 unchanged lines hidden (view full) --- 348 # Update category default-item because now we're cached 349 [ $page -eq 1 ] && 350 category_defaultitem="${category_defaultitem%\*}*" 351 else 352 return $FAILURE 353 fi 354} 355 | 322 local retval=$? 323 f_dialog_menutag_store -s "$menu_choice" 324 return $retval 325} 326 327# f_package_index_get_page $category $page [$var_to_set [$var_to_get]] 328# 329# Obtain a [potentially cached] page of the INDEX file for a given $category. --- 18 unchanged lines hidden (view full) --- 348 # Update category default-item because now we're cached 349 [ $page -eq 1 ] && 350 category_defaultitem="${category_defaultitem%\*}*" 351 else 352 return $FAILURE 353 fi 354} 355 |
356# f_package_menu_select $category [ $page [ $defaultitem ] ] | 356# f_package_menu_select $category [$page [$defaultitem]] |
357# 358# Display list of packages for $category, optionally $page N and with a default 359# item selected. If $page is omitted, the first page is displayed (but this 360# only matters if there are multiple pages; which is determined by the global 361# maximum $PACKAGE_MENU_PAGESIZE). 362# 363# On success, if the user doesn't press ESC or choose Cancel, the environment 364# variable $DIALOG_MENUITEM_$$ will hold the item associated with the chosen --- 419 unchanged lines hidden --- | 357# 358# Display list of packages for $category, optionally $page N and with a default 359# item selected. If $page is omitted, the first page is displayed (but this 360# only matters if there are multiple pages; which is determined by the global 361# maximum $PACKAGE_MENU_PAGESIZE). 362# 363# On success, if the user doesn't press ESC or choose Cancel, the environment 364# variable $DIALOG_MENUITEM_$$ will hold the item associated with the chosen --- 419 unchanged lines hidden --- |