BRISBANE - Pakistan are looking with renewed confidence to the remaining two Tests in the series after taking Australia to the brink at the Gabba, skipper Misbah-ul-Haq said on Monday.

Misbah's men went down with all guns blazing by just 39 runs after chasing a world record 490 runs in the day-night first Test to raise their hopes of coming from behind to win their first-ever series in Australia. Propelled by a magnificent 137 from Asad Shafiq over five-and-a-half hours, the Australians were fearing the worst until claiming the last two wickets late in the first session on the final day.

Misbah, the 42-year-old team elder, said the brave performance had fortified his team ahead of the second Test at the Melbourne Cricket Ground, starting on Boxing Day, December 26. "As the skipper I am happy to see the team play like that," he said.

"Chasing 490 in the last innings after 142 in the first, the character of all the batsmen showed. That was wonderful. I think it has set the tone for the series. There were a lot of positives for us, especially in Australia where batting is the main problem for us. Now we are looking forward and are confident ahead of the next two Test matches."

Misbah, who struggled batting under lights in the night sessions with scores of four and five, reserved special praise for Shafiq's heroic innings. "That is one of the classiest innings I have seen. In the context of the game, the way he handled the pressure playing with the tail, he made a match out of nothing," he said. Pakistan yet again illustrated their mercurial ability to surprise after posting a miserable 142 to trail by 287 on the first innings.

"It is a totally different scenario when you start your innings with a new ball under lights," Misbah said. "They got through us, but in the second innings we showed courage to survive the initial burst with the new ball, then they played their shots. "The mindset was positive. We wanted to score runs, everyone was determined, they showed character and it changed the whole scenario."

Misbah said Pakistan, who play all of their games away from their homeland amid security fears, were mentally tough after playing six years together. "Playing away all the time from friends, family, everybody, that is difficult for any player and that can sometimes burn a player, mentally they are tired," he said.

"But overall this team is experienced enough now after playing together for six years, you could say it is a settled team. "They are capable of playing in any conditions because they are mentally tough, they understand Test cricket," Misbah added.

 Smith says Test win too close for comfort

Captain Steve Smith admitted Pakistan got too close for comfort to an incredible record-breaking victory before Australia finally wrapped up the first Test at the Gabba on Monday.

Pakistan, faced with a massive 490 runs to win the day-night Test, went down by just 39 on the back of man-of-the-match Asad Shafiq's magnificent fighting 137 batting with the tail. Until Shafiq was undone by a rising Mitchell Starc delivery, Pakistan looked to have every chance of shattering the record for the highest fourth innnings run chase to win a Test -- the 418 for 7 made by the West Indies against Australia in Antigua in 2003.

Smith became a fraught captain trying to think of ways to stop the Pakistani juggernaut from claiming a stupendous win against the odds after trailing Australia by 287 runs on the first innings. "Probably with about 60-odd runs to go I started getting a little bit nervous, hoping that one of our world-class fast bowlers would be able to step up and get us that breakthrough," Smith said.

"Thankfully, Mitchell Starc was the one to do it today. Things got a little bit close for my liking. "But you always have to keep the faith and try and keep the guys in good positive spirits and know that when you're eight down you are really one wicket away from closing the game out."

For much of Monday's extended opening session Pakistan, who began with just two wickets left and 108 runs needed, looked more than capable of holding off Australia's attempts to end the match. "To get one to bounce the way he did, with the pink ball being 60 overs old, not really doing much, and get us that key scalp, a lot of credit has got to go to Mitchell," the skipper said.

Starc's brutish lifter came off the shoulder of Shafiq's bat and lobbed to David Warner in the gully for the match-turning catch. Smith confessed he had to work harder on his fielding after dropping two catches at crucial stages in Sunday's marathon three-hour night session which had given Pakistan momentum.

"Maybe I need a slips cradle for Christmas or something like that to work on a few things," he said.

"I do pride myself on my fielding and it was disappointing to have dropped a couple of catches last night and allowed the Pakistanis back into the game. Things could have certainly happened a lot quicker had I held onto those. I need to continue to work hard as the leader of this time on my fielding. We set high standards as a team."

Smith also said he wanted to come off and not play the extra half hour on Sunday night to force a result. "The umpires deemed for it to be the opportunity for a result. We went with that," he said. I probably then would have liked to come off and given our bowlers a rest -- they'd worked incredibly hard all day and Pakistan were just starting to get onto a bit of a roll -- but you've got to go with the umpire's call. It was their decision out on the ground, and they decided to stay out there."